Use flatpak build instead of flatpak-builder #895
This file contains 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
name: CI | |
# See also https://github.com/flatpak/flatpak-github-actions | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
container: | |
image: bilelmoussaoui/flatpak-github-actions:gnome-47 | |
options: --privileged | |
steps: | |
# https://github.com/actions/runner-images/issues/6775#issuecomment-1377299658 | |
- name: "Workaround" | |
run: chown root:root . | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install host dependencies | |
run: | | |
dnf -y install flatpak flatpak-builder make gcc gcc-c++ mutter | |
# Restore caches | |
- name: Restore Flatpak dependencies | |
uses: actions/cache/restore@v3 | |
with: | |
path: ~/.local/share/flatpak | |
key: ${{ runner.os }}-flatpak-dependencies-${{ github.run_id }} | |
restore-keys: | | |
${{ runner.os }}-flatpak-dependencies- | |
- name: Restore .flatpak-builder | |
uses: actions/cache/restore@v3 | |
with: | |
path: .flatpak-builder | |
key: ${{ runner.os }}-flatpak-builder-${{ github.run_id }} | |
restore-keys: | | |
${{ runner.os }}-flatpak-builder- | |
- run: mutter --wayland --no-x11 --headless --wayland-display=wayland-0 --virtual-monitor 1280x720 > /tmp/mutter.log 2>&1 & | |
- run: make ci | |
- run: cat /tmp/mutter.log | |
# Save caches | |
- name: Save Flatpak dependencies | |
uses: actions/cache/save@v3 | |
if: always() | |
with: | |
path: ~/.local/share/flatpak | |
key: ${{ runner.os }}-flatpak-dependencies-${{ github.run_id }} | |
- name: Save .flatpak-builder | |
uses: actions/cache/save@v3 | |
if: always() | |
with: | |
path: .flatpak-builder | |
key: ${{ runner.os }}-flatpak-builder-${{ github.run_id }} |