CI: modify flatpak.yml #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: Kang Lin<kl222@126.com> | |
| name: flatpak | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build_flatpak: | |
| strategy: | |
| matrix: | |
| variant: | |
| - arch: x86_64 | |
| runner: ubuntu-24.04 | |
| - arch: aarch64 | |
| runner: ubuntu-24.04-arm | |
| # See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners) | |
| # See: [Choosing the runner for a job](https://docs.github.com/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job) | |
| # See: https://github.com/actions/runner-images/ | |
| runs-on: ${{ matrix.variant.runner }} | |
| container: | |
| image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-44 | |
| options: --privileged | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Flatpak build | |
| - uses: flathub-infra/flatpak-github-actions/flatpak-builder@master | |
| with: | |
| manifest-path: Package/io.github.KangLin.RabbitRemoteControl.json | |
| cache-key: flatpak-builder-${{ github.sha }} | |
| arch: ${{ matrix.variant.arch }} | |
| verbose: true |