Skip to content

Commit

Permalink
Build the flatpack in github Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
silviot committed Dec 7, 2024
1 parent 9c5ff90 commit e821bca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
# branches: [main]
pull_request:
name: CI
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-24.04
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-47
options: --privileged
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: aardvark.flatpak
manifest-path: org.p2panda.aardvark.json
cache-key: flatpak-builder-${{ github.sha }}
# The above job will build the application as a flatpack and
# publish it as an artifact. To test it locally you can download
# the zip artifact, extract it, install the flatpack and run it.
# flatpak --user install aardvark.flatpak
4 changes: 2 additions & 2 deletions org.p2panda.aardvark.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id" : "org.p2panda.aardvark",
"runtime" : "org.gnome.Platform",
"runtime-version" : "master",
"runtime-version" : "47",
"sdk" : "org.gnome.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.rust-stable"
Expand Down Expand Up @@ -44,7 +44,7 @@
{
"type" : "git",
"url" : "./",
"branch" : "main"
"branch" : "HEAD"
}
]
}
Expand Down

0 comments on commit e821bca

Please sign in to comment.