-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows: update to latest GitHub actions
- Loading branch information
1 parent
91f88b7
commit 8ba0505
Showing
1 changed file
with
10 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,25 @@ | ||
name: Flatpak | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
flatpak: | ||
name: Flathub | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:gnome-42 | ||
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-46 | ||
options: --privileged | ||
|
||
strategy: | ||
matrix: | ||
arch: [x86_64, aarch64] | ||
# Don't fail the whole workflow if one architecture fails | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install deps | ||
run: | | ||
dnf -y install docker | ||
if: ${{ matrix.arch == 'aarch64' }} | ||
|
||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: arm64 | ||
if: ${{ matrix.arch == 'aarch64' }} | ||
|
||
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master | ||
with: | ||
bundle: plausible-${{ matrix.arch }}.flatpak | ||
bundle: tally.flatpak | ||
manifest-path: com.cassidyjames.plausible.json | ||
cache-key: "flatpak-builder-${{ github.sha }}" | ||
arch: ${{ matrix.arch }} |