Merge pull request #145 from Rafostar/actions-aarch64

Add aarch64 builds to git actions
This commit is contained in:
Rafał Dzięgiel
2021-08-27 21:42:31 +02:00
committed by GitHub
2 changed files with 30 additions and 4 deletions

View File

@@ -1,21 +1,34 @@
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
name: "Flatpak Testing" name: "Flatpak Nightly"
jobs: jobs:
flatpak: flatpak:
name: "Flatpak" name: "Flatpak"
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: bilelmoussaoui/flatpak-github-actions:gnome-40 image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3 - name: Install Docker
run: |
dnf -y install docker
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
name: "Build" name: "Build"
with: with:
bundle: com.github.rafostar.Clapper.flatpak bundle: com.github.rafostar.Clapper.flatpak
manifest-path: pkgs/flatpak/com.github.rafostar.Clapper-testing.json manifest-path: pkgs/flatpak/com.github.rafostar.Clapper-testing.json
cache-key: flatpak-builder-${{ github.sha }}-testing-${{ github.run_number }} cache-key: flatpak-builder-${{ github.sha }}-testing-${{ github.run_number }}
arch: ${{ matrix.arch }}

View File

@@ -13,13 +13,26 @@ jobs:
container: container:
image: bilelmoussaoui/flatpak-github-actions:gnome-40 image: bilelmoussaoui/flatpak-github-actions:gnome-40
options: --privileged options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v3 - name: Install Docker
run: |
dnf -y install docker
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
name: "Build" name: "Build"
with: with:
bundle: com.github.rafostar.Clapper.flatpak bundle: com.github.rafostar.Clapper.flatpak
manifest-path: pkgs/flatpak/com.github.rafostar.Clapper.json manifest-path: pkgs/flatpak/com.github.rafostar.Clapper.json
cache-key: flatpak-builder-${{ github.sha }} cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}