mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-08-06 12:17:48 -04:00
Merge 45ef2c1b66dd1fc26bb2f31bfa144d78054a58a4 into cedd6ffae618e4639518746a73450fa12f05c626
This commit is contained in:
commit
b64e92d27c
43
.github/workflows/build_flatpak.yml
vendored
Normal file
43
.github/workflows/build_flatpak.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: Build latest (Flatpak)
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}-flatpak
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.ref_name == github.event.repository.default_branch
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
|
||||||
|
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@v4
|
||||||
|
# Docker is required by the docker/setup-qemu-action which enables emulation
|
||||||
|
- name: Install deps
|
||||||
|
if: ${{ matrix.arch != 'x86_64' }}
|
||||||
|
run: |
|
||||||
|
dnf -y install docker
|
||||||
|
- name: Set up QEMU
|
||||||
|
if: ${{ matrix.arch != 'x86_64' }}
|
||||||
|
id: qemu
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
with:
|
||||||
|
platforms: arm64
|
||||||
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
|
with:
|
||||||
|
bundle: net.classicube.flatpak.client.flatpak
|
||||||
|
manifest-path: misc/linux/flatpak/net.classicube.flatpak.client.yml
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to compile Flatpak build(s)'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
Loading…
x
Reference in New Issue
Block a user