ci(flatpak): build aarch64 on arm architecture (#3680)
This commit is contained in:
40
.github/workflows/CI.yml
vendored
40
.github/workflows/CI.yml
vendored
@@ -45,43 +45,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
setup_flatpak_matrix:
|
|
||||||
name: Setup Flatpak Matrix
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set release details
|
|
||||||
id: flatpak_matrix
|
|
||||||
# https://www.cynkra.com/blog/2020-12-23-dynamic-gha
|
|
||||||
run: |
|
|
||||||
# determine which architectures to build
|
|
||||||
if [[ "${{ github.event_name }}" == "push" ]]; then
|
|
||||||
matrix=$((
|
|
||||||
echo '{ "arch" : ["x86_64", "aarch64"] }'
|
|
||||||
) | jq -c .)
|
|
||||||
else
|
|
||||||
matrix=$((
|
|
||||||
echo '{ "arch" : ["x86_64"] }'
|
|
||||||
) | jq -c .)
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $matrix
|
|
||||||
echo $matrix | jq .
|
|
||||||
echo "matrix=$matrix" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
matrix: ${{ steps.flatpak_matrix.outputs.matrix }}
|
|
||||||
|
|
||||||
build_linux_flatpak:
|
build_linux_flatpak:
|
||||||
env:
|
env:
|
||||||
APP_ID: dev.lizardbyte.app.Sunshine
|
APP_ID: dev.lizardbyte.app.Sunshine
|
||||||
NODE_VERSION: "20"
|
NODE_VERSION: "20"
|
||||||
PLATFORM_VERSION: "23.08"
|
PLATFORM_VERSION: "23.08"
|
||||||
name: Linux Flatpak
|
name: Linux Flatpak
|
||||||
runs-on: ubuntu-22.04
|
needs: [setup_release]
|
||||||
needs: [setup_release, setup_flatpak_matrix]
|
runs-on: ${{ matrix.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # false to test all, true to fail entire job if any fail
|
fail-fast: false # false to test all, true to fail entire job if any fail
|
||||||
matrix: ${{fromJson(needs.setup_flatpak_matrix.outputs.matrix)}}
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch: x86_64
|
||||||
|
runner: ubuntu-22.04
|
||||||
|
- arch: aarch64
|
||||||
|
runner: ubuntu-22.04-arm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
@@ -126,8 +105,7 @@ jobs:
|
|||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
cmake \
|
cmake \
|
||||||
flatpak \
|
flatpak
|
||||||
qemu-user-static
|
|
||||||
|
|
||||||
sudo su $(whoami) -c "flatpak --user remote-add --if-not-exists flathub \
|
sudo su $(whoami) -c "flatpak --user remote-add --if-not-exists flathub \
|
||||||
https://flathub.org/repo/flathub.flatpakrepo"
|
https://flathub.org/repo/flathub.flatpakrepo"
|
||||||
|
|||||||
Reference in New Issue
Block a user