1
0
Fork 0

CI: fix arm64 CI and split builds

This commit is contained in:
liushuyu 2021-12-26 18:10:00 -07:00
parent 0c5f52a442
commit 58f630b63f
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
2 changed files with 11 additions and 3 deletions

View File

@ -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"

View File

@ -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