Skip to content
Draft
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
1 change: 1 addition & 0 deletions .github/workflows/ci-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
matrix=$(echo "$flake_json" | jq -c '[.inventory.packages.output.children
| to_entries[]
| .key as $sys
| select($sys | endswith("-linux"))
| .value.children
| keys[]
| select(endswith("-deb"))
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
matrix=$(echo "$flake_json" | jq -c '[.inventory.packages.output.children
| to_entries[]
| .key as $sys
| select($sys | endswith("-linux"))
| .value.children
| keys[]
| select(endswith("-docker"))
Expand All @@ -38,6 +39,7 @@ jobs:
manifests=$(echo "$flake_json" | jq -c '[.inventory.packages.output.children
| to_entries[]
| .key as $sys
| select($sys | endswith("-linux"))
| .value.children
| keys[]
| select(endswith("-docker"))
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/ci-flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
on:
push:
branches:
- master
tags:
- v?[0-9]+.[0-9]+.[0-9]+*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4

- name: Install flatpak and flatpak-builder
run: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder elfutils
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y --noninteractive flathub org.freedesktop.Platform/${{ matrix.arch }}/24.08
sudo flatpak install -y --noninteractive flathub org.freedesktop.Sdk/${{ matrix.arch }}/24.08
sudo flatpak install -y --noninteractive flathub org.freedesktop.Sdk.Extension.rust-stable/${{ matrix.arch }}/24.08

- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
manifest-path: pkgs/athena/flatpak/com.midstall.athena.yml
bundle: athena-${{ matrix.arch }}.flatpak
arch: ${{ matrix.arch }}
cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: athena-flatpak-${{ matrix.arch }}
path: athena-${{ matrix.arch }}.flatpak

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: flatpaks
merge-multiple: true

- name: Upload to release
uses: softprops/action-gh-release@v2
with:
files: flatpaks/*.flatpak
Loading
Loading