CI: fix arm64 CI and split builds
This commit is contained in:
parent
0c5f52a442
commit
58f630b63f
|
@ -7,7 +7,11 @@ for i in "$TOPDIR"/../patches/*.patch; do
|
|||
patch -Np1 -i "$i"
|
||||
done
|
||||
|
||||
export CFLAGS="-ftree-vectorize -flto"
|
||||
CFLAGS="-ftree-vectorize -flto"
|
||||
if [[ "$(uname -m)" == "aarch64" ]]; then
|
||||
CFLAGS="$CFLAGS -march=armv8-a+crc+crypto"
|
||||
fi
|
||||
export CFLAGS
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-flto -fuse-linker-plugin"
|
||||
|
||||
|
|
|
@ -7,13 +7,17 @@ on:
|
|||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
inputs: {}
|
||||
schedule:
|
||||
- cron: '0 7 * * 0'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up QEMU
|
||||
|
@ -29,6 +33,6 @@ jobs:
|
|||
- name: Build Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: 'linux/amd64,linux/arm64'
|
||||
platforms: linux/${{ matrix.arch }}
|
||||
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/citra-multiplayer-dedicated') }}
|
||||
tags: citraemu/citra-multiplayer-dedicated:latest
|
||||
|
|
Reference in New Issue