Add qemu for arm builds on flatpak

This commit is contained in:
cochcoder
2025-01-13 20:47:48 -05:00
committed by GitHub
parent 4c955e5cb5
commit 04c9c97629

View File

@@ -63,6 +63,7 @@ jobs:
flatpak: flatpak:
name: "Flatpak" name: "Flatpak"
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 360
env: env:
date: date:
ver: ver:
@@ -75,6 +76,10 @@ jobs:
- /usr/share/dotnet:/usr/share/dotnet - /usr/share/dotnet:/usr/share/dotnet
- /opt/ghc:/opt/ghc1 - /opt/ghc:/opt/ghc1
- /usr/local/share/boost:/usr/local/share/boost1 - /usr/local/share/boost:/usr/local/share/boost1
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps: steps:
- name: "Remove unneeded stuff to free disk space" - name: "Remove unneeded stuff to free disk space"
run: run:
@@ -92,11 +97,22 @@ jobs:
echo "ver_pure=$ver_pure" >> $GITHUB_ENV echo "ver_pure=$ver_pure" >> $GITHUB_ENV
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
shell: bash shell: bash
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6 - uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with: with:
bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak bundle: OrcaSlicer-Linux-flatpak_${{ env.ver }}.flatpak
manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml manifest-path: flatpak/io.github.softfever.OrcaSlicer.yml
cache: true cache: true
arch: ${{ matrix.arch }}
- name: Deploy Flatpak to nightly release - name: Deploy Flatpak to nightly release
if: ${{github.ref == 'refs/heads/main'}} if: ${{github.ref == 'refs/heads/main'}}
uses: WebFreak001/deploy-nightly@v3.1.0 uses: WebFreak001/deploy-nightly@v3.1.0