Skip to content

Commit

Permalink
New workflow and refresh flatpak dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Aug 21, 2024
1 parent a157681 commit 898827b
Show file tree
Hide file tree
Showing 4 changed files with 2,903 additions and 78 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/flatpak.yml
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 }}
Loading

0 comments on commit 898827b

Please sign in to comment.