Skip to content

Commit eefac26

Browse files
feat: init athena
1 parent adeca1b commit eefac26

41 files changed

Lines changed: 8975 additions & 185 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-deb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
matrix=$(echo "$flake_json" | jq -c '[.inventory.packages.output.children
3030
| to_entries[]
3131
| .key as $sys
32+
| select($sys | endswith("-linux"))
3233
| .value.children
3334
| keys[]
3435
| select(endswith("-deb"))

.github/workflows/ci-docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
matrix=$(echo "$flake_json" | jq -c '[.inventory.packages.output.children
3131
| to_entries[]
3232
| .key as $sys
33+
| select($sys | endswith("-linux"))
3334
| .value.children
3435
| keys[]
3536
| select(endswith("-docker"))
@@ -38,6 +39,7 @@ jobs:
3839
manifests=$(echo "$flake_json" | jq -c '[.inventory.packages.output.children
3940
| to_entries[]
4041
| .key as $sys
42+
| select($sys | endswith("-linux"))
4143
| .value.children
4244
| keys[]
4345
| select(endswith("-docker"))

.github/workflows/ci-flatpak.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
tags:
6+
- v?[0-9]+.[0-9]+.[0-9]+*
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
16+
permissions:
17+
contents: read
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
arch: [x86_64, aarch64]
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Install flatpak and flatpak-builder
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y flatpak flatpak-builder elfutils
29+
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
30+
sudo flatpak install -y --noninteractive flathub org.freedesktop.Platform/${{ matrix.arch }}/24.08
31+
sudo flatpak install -y --noninteractive flathub org.freedesktop.Sdk/${{ matrix.arch }}/24.08
32+
sudo flatpak install -y --noninteractive flathub org.freedesktop.Sdk.Extension.rust-stable/${{ matrix.arch }}/24.08
33+
34+
- name: Build Flatpak
35+
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
36+
with:
37+
manifest-path: pkgs/athena/flatpak/com.midstall.athena.yml
38+
bundle: athena-${{ matrix.arch }}.flatpak
39+
arch: ${{ matrix.arch }}
40+
cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }}
41+
42+
- name: Upload artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: athena-flatpak-${{ matrix.arch }}
46+
path: athena-${{ matrix.arch }}.flatpak
47+
48+
release:
49+
if: startsWith(github.ref, 'refs/tags/v')
50+
needs: build
51+
runs-on: ubuntu-latest
52+
permissions:
53+
contents: write
54+
steps:
55+
- name: Download all artifacts
56+
uses: actions/download-artifact@v4
57+
with:
58+
path: flatpaks
59+
merge-multiple: true
60+
61+
- name: Upload to release
62+
uses: softprops/action-gh-release@v2
63+
with:
64+
files: flatpaks/*.flatpak

0 commit comments

Comments
 (0)