Skip to content

Commit

Permalink
CI: Flatpak handle aarch64 nonrelease builds
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Dec 15, 2024
1 parent 306ff2a commit a16074d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ jobs:
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
include:
- arch: x86_64
- arch: aarch64
include_arm64: ${{ startsWith(github.ref, 'refs/tags/') }}
# Don't fail the whole workflow if one architecture fails
fail-fast: false
steps:
Expand All @@ -286,19 +289,22 @@ jobs:
platforms: arm64

- name: Download files
if: matrix.arch != 'aarch64' || matrix.include_arm64
uses: actions/download-artifact@v4
with:
name: tanoshi-app-linux-${{ matrix.arch }}
path: target/release/

- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
if: matrix.arch != 'aarch64' || matrix.include_arm64
with:
bundle: tanoshi.${{ matrix.arch }}.flatpak
manifest-path: flatpak/org.luigi311.tanoshi.yml
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}

- name: Upload dist
if: matrix.arch != 'aarch64' || matrix.include_arm64
uses: actions/upload-artifact@v4
with:
name: tanoshi.${{ matrix.arch }}.flatpak
Expand Down

0 comments on commit a16074d

Please sign in to comment.