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"
|
patch -Np1 -i "$i"
|
||||||
done
|
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 CXXFLAGS="$CFLAGS"
|
||||||
export LDFLAGS="-flto -fuse-linker-plugin"
|
export LDFLAGS="-flto -fuse-linker-plugin"
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,17 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs: {}
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 7 * * 0'
|
- cron: '0 7 * * 0'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
arch: [amd64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
@ -29,6 +33,6 @@ jobs:
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
platforms: 'linux/amd64,linux/arm64'
|
platforms: linux/${{ matrix.arch }}
|
||||||
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/citra-multiplayer-dedicated') }}
|
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/citra-multiplayer-dedicated') }}
|
||||||
tags: citraemu/citra-multiplayer-dedicated:latest
|
tags: citraemu/citra-multiplayer-dedicated:latest
|
||||||
|
|
Reference in New Issue