-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New workflow and refresh flatpak dependencies
- Loading branch information
Showing
4 changed files
with
2,903 additions
and
78 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Flatpak Packages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- "releases/**" | ||
pull_request: | ||
branches: | ||
- main | ||
- "releases/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: "Build Flatpaks" | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.6 | ||
options: --privileged | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
path: src | ||
|
||
- name: Checkout tools | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: flatpak/flatpak-builder-tools | ||
path: tools | ||
|
||
- name: Generate Python deps | ||
shell: bash | ||
working-directory: src | ||
run: ../tools/pip/flatpak-pip-generator -r requirements.txt --output linux/flatpak-pydeps --yaml --build-only | ||
|
||
- name: Generate Cargo deps | ||
shell: bash | ||
working-directory: src | ||
run: | | ||
../tools/cargo/flatpak-cargo-generator.py -o flatpak-sources-cargo.json Cargo.lock | ||
cat flatpak-sources-cargo.json | yq -P > linux/flatpak-sources-cargo.yaml | ||
- name: Build | ||
uses: flathub-infra/flatpak-github-actions/flatpak-builder@master | ||
with: | ||
bundle: mozillavpn.flatpak | ||
manifest-path: src/linux/org.mozilla.vpn.yml | ||
cache-key: flatpak-builder-${{ github.sha }} |
Oops, something went wrong.