Skip to content

fix(wayland): drive keyboard shortcuts with wtype and ydotool (#715) #470

fix(wayland): drive keyboard shortcuts with wtype and ydotool (#715)

fix(wayland): drive keyboard shortcuts with wtype and ydotool (#715) #470

Workflow file for this run

name: Flatpak
on:
push:
branches: [ main, master ]
paths:
- 'packaging/flatpak/**'
- 'src/**'
- 'pyproject.toml'
- '.github/workflows/flatpak.yml'
pull_request:
branches: [ main, master ]
paths:
- 'packaging/flatpak/**'
- 'src/**'
- 'pyproject.toml'
- '.github/workflows/flatpak.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# matrix is not available in job-level if; build the arch list here instead.
# PRs: x86_64 only. main / workflow_dispatch: both arches.
matrix:
name: Resolve build matrix
runs-on: ubuntu-latest
outputs:
include: ${{ steps.set.outputs.include }}
steps:
- id: set
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo 'include=[{"arch":"x86_64","runner":"ubuntu-latest"}]' >> "$GITHUB_OUTPUT"
else
echo 'include=[{"arch":"x86_64","runner":"ubuntu-latest"},{"arch":"aarch64","runner":"ubuntu-24.04-arm"}]' >> "$GITHUB_OUTPUT"
fi
build:
name: Build Flatpak (${{ matrix.arch }})
needs: matrix
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.matrix.outputs.include) }}
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-50
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and bundle
uses: flatpak/flatpak-github-actions/flatpak-builder@79327416609af08178ad73b352877e51450790b3 # v6
with:
bundle: vocalinux-${{ matrix.arch }}.flatpak
manifest-path: packaging/flatpak/com.vocalinux.Vocalinux.yml
# Stable key so .flatpak-builder cache restores across commits.
# github.sha in the key forced a full rebuild every run.
# Arch is appended automatically by the action.
cache-key: flatpak-builder-${{ hashFiles('packaging/flatpak/**') }}
arch: ${{ matrix.arch }}
artifact-name: vocalinux-flatpak-${{ matrix.arch }}
# Flathub mirrors screenshots at submission time; mirror locally so the
# builddir linter does not flag the external screenshot URL.
mirror-screenshots-url: https://dl.flathub.org/media