Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed Dec 16, 2023
1 parent 29cc9ec commit 7d99132
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
name: CI

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

name: Flatpak Nightly
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Prepare Runtime
run: |
flatpak --system remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --system install -y --noninteractive flathub org.freedesktop.Sdk.Extension.node18/${{ matrix.arch }}/23.08
- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v4
with:
repository-name: gnome-nightly
repository-url: https://nightly.gnome.org/gnome-nightly.flatpakrepo
bundle: sticky.flatpak
manifest-path: com.vixalien.sticky.json
cache-key: flatpak-builder-${{ github.sha }}
- uses: actions/checkout@v4
- name: Install Docker
if: matrix.arch == 'aarch64'
run: |
dnf -y install docker
- name: Setup QEMU
if: matrix.arch == 'aarch64'
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Prepare Runtime
run: |
flatpak --system install -y --noninteractive flathub org.freedesktop.Sdk.Extension.node18/${{ matrix.arch }}/23.08
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: com.vixalien.sticky.flatpak
repository-name: gnome-nightly
repository-url: https://nightly.gnome.org/gnome-nightly.flatpakrepo
manifest-path: build-aux/flatpak/com.vixalien.sticky.json
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}

0 comments on commit 7d99132

Please sign in to comment.