Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/flatpak-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ jobs:
[ -d "$d" ] || { echo "::error::Directory $d does not exist"; exit 1; }
done

flatpak-builder-debug-bundle:
name: Flatpak Builder Debug Bundle
runs-on: ubuntu-latest
needs: flatpak-builder
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
options: --privileged
steps:
- uses: actions/checkout@v6
- uses: ./flatpak-builder
with:
bundle: org.example.MyApp.Devel-debug-bundle.flatpak
build-debug-bundle: true
manifest-path: ./flatpak-builder/tests/test-project/org.example.MyApp.yaml
cache-key: flatpak-builder-${{ github.sha }}-debug-bundle
verbose: true

tests:
name: Tests
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
| `stop-at-module` | Stop at the specified module, ignoring it and all the following ones. Using this option disables generating bundles. | Optional | Build all modules from the manifest file |
| `bundle` | The bundle name | Optional | `app.flatpak` |
| `build-bundle` | Whether to build a bundle or not | Optional | `true` |
| `build-debug-bundle` | Whether to build a debug bundle or not | Optional | `false` |
| `repository-name` | The repository name, used to fetch the runtime when the user download the Flatpak bundle or when building the application | Optional | `flathub` |
| `repository-url` | The repository url, used to fetch the runtime when the user download the Flatpak bundle or when building the application | Optional | `https://flathub.org/repo/flathub.flatpakrepo` |
| `run-tests` | Enable/Disable running tests. This overrides the `flatpak-builder` option of the same name, which invokes `make check` or `ninja test`. Network and X11 access is enabled, with a display server provided by `xvfb-run`. | Optional | `false` |
Expand Down Expand Up @@ -96,7 +97,7 @@ jobs:
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
# Use the static binaries because it's unable to use a package manager
# Use the static binaries because it's unable to use a package manager
curl https://download.docker.com/linux/static/stable/x86_64/docker-26.0.0.tgz --output ./docker.tgz
tar xzvf docker.tgz
mv docker/* /usr/bin
Expand Down
4 changes: 4 additions & 0 deletions flatpak-builder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
description: "Whether to build a bundle or not."
default: "true"
required: false
build-debug-bundle:
description: "Whether to build a debug bundle or not."
default: "false"
required: false
repository-url:
description: >
The repository used to fetch the runtime when the user downloads the
Expand Down
Loading
Loading