Skip to content

Flatter: Add 'aarch64' multiarch build #8

Flatter: Add 'aarch64' multiarch build

Flatter: Add 'aarch64' multiarch build #8

Workflow file for this run

name: Flatter
on:
push:
branches: [master]
workflow_dispatch: {}
jobs:
build:
name: Build with Flatter
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
max-parallel: 1
steps:
- name: Setup Docker
if: ${{ matrix.arch == 'aarch64' }}
shell: bash --noprofile --norc -eu -o pipefail -x {0}
run: |
dnf update -y
dnf install -y docker
- name: Setup QEMU
if: ${{ matrix.arch == 'aarch64' }}
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup GPG
id: gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Build with Flatter
uses: andyholmes/flatter@main
with:
files: |
com.jetbrains.PhpStorm.json
arch: ${{ matrix.arch }}
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
upload-bundles: true
upload-pages-artifact: ${{ matrix.arch == 'aarch64' }}
flatpak-builder-args: |
--install-deps-from=flathub
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: GitHub Pages
id: deployment
uses: actions/deploy-pages@v4