chore: add flatpak schema and base app #33
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
| name: Flatpak | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| flatpak: | |
| name: "Flatpak" | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-25.08 | |
| options: --privileged | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install flatpak-cargo-generator deps | |
| run: pip3 install aiohttp toml | |
| - name: Generate cargo-sources.json | |
| run: | | |
| curl -Lo flatpak-cargo-generator.py \ | |
| https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/cargo/flatpak-cargo-generator.py | |
| python3 flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json | |
| - name: Upload cargo-sources.json artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cargo-sources-${{ github.run_id }} | |
| path: cargo-sources.json | |
| retention-days: 30 |