@@ -18,25 +18,32 @@ jobs:
1818 # Don't fail the whole workflow if one architecture fails
1919 fail-fast : false
2020 steps :
21- - uses : actions/checkout@v4
22- with :
23- submodules : ' recursive'
24- - name : Install deps
25- if : ${{ matrix.arch != 'x86_64' }}
26- run : |
27- # Use the static binaries because it's unable to use a package manager
28- curl https://download.docker.com/linux/static/stable/x86_64/docker-26.0.0.tgz --output ./docker.tgz
29- tar xzvf docker.tgz
30- mv docker/* /usr/bin
31- - name : Set up QEMU
32- if : ${{ matrix.arch != 'x86_64' }}
33- id : qemu
34- uses : docker/setup-qemu-action@v3
35- with :
36- platforms : arm64
37- - uses : flatpak/flatpak-github-actions/flatpak-builder@v6
38- with :
39- bundle : UnCSO2.flatpak
40- manifest-path : tf.harmony.UnCSO2.yml
41- cache-key : flatpak-builder-${{ matrix.arch }}-${{ github.sha }}
42- arch : ${{ matrix.arch }}
21+ - uses : actions/checkout@v4
22+ with :
23+ submodules : ' recursive'
24+
25+ - name : Set output
26+ id : read_version
27+ run : echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT
28+
29+ - name : Install deps
30+ if : ${{ matrix.arch != 'x86_64' }}
31+ run : |
32+ # Use the static binaries because it's unable to use a package manager
33+ curl https://download.docker.com/linux/static/stable/x86_64/docker-26.0.0.tgz --output ./docker.tgz
34+ tar xzvf docker.tgz
35+ mv docker/* /usr/bin
36+
37+ - name : Set up QEMU
38+ if : ${{ matrix.arch != 'x86_64' }}
39+ id : qemu
40+ uses : docker/setup-qemu-action@v3
41+ with :
42+ platforms : arm64
43+
44+ - uses : flatpak/flatpak-github-actions/flatpak-builder@v6
45+ with :
46+ bundle : UnCSO2-${{ steps.read_version.outputs.version }}-linux-${{ matrix.arch }}.flatpak
47+ manifest-path : tf.harmony.UnCSO2.yml
48+ cache-key : flatpak-builder-${{ matrix.arch }}-${{ github.sha }}
49+ arch : ${{ matrix.arch }}
0 commit comments