mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-09-22 22:48:03 +03:00
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: 📦 Linux Flatpak
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux-flatpak-build:
|
|
name: "Build"
|
|
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
|
|
options: --privileged
|
|
timeout-minutes: 60
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download version.h artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: version-file
|
|
path: src/lindbergh/
|
|
|
|
- name: Download SDL3 libs
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: SDL3-FAudio-ID
|
|
path: libs/
|
|
|
|
# Work around container ownership issue
|
|
- name: Set Safe Directory
|
|
shell: bash
|
|
run: git config --global --add safe.directory "*"
|
|
|
|
- name: Build Flatpak
|
|
uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
|
|
with:
|
|
bundle: lindbergh-loader.flatpak
|
|
upload-artifact: false
|
|
manifest-path: scripts/flatpak/com.github.lindberghloader.yml
|
|
build-bundle: true
|
|
verbose: true
|
|
branch: stable
|
|
cache: true
|
|
restore-cache: true
|
|
cache-key: flatpak-${{ hashFiles('scripts/flatpak/*.yaml') }}
|
|
|
|
- name: Upload Flatpak
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: "linux-flatpak"
|
|
path: "lindbergh-loader.flatpak"
|