Skip to content

Commit

Permalink
Workflows: update to latest GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidyjames committed Apr 22, 2024
1 parent 91f88b7 commit 8ba0505
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions .github/workflows/flatpak.yml
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 }}

0 comments on commit 8ba0505

Please sign in to comment.