Skip to content

Commit 88fb781

Browse files
committed
ci: don't test flatpak build
Flathub now builds from source so this is obsolete
1 parent 7f47e6c commit 88fb781

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

.github/workflows/linux.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -167,42 +167,3 @@ jobs:
167167
repo_token: ${{ secrets.GITHUB_TOKEN }}
168168
file: appimage/Saber-*-x86_64.AppImage*
169169
file_glob: true
170-
171-
build-flatpak:
172-
name: Build Flatpak
173-
needs: build-linux
174-
runs-on: ubuntu-latest
175-
timeout-minutes: 15
176-
container:
177-
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
178-
options: --privileged
179-
steps:
180-
- name: Checkout flathub repo
181-
uses: actions/checkout@v6
182-
with:
183-
repository: flathub/com.adilhanney.saber
184-
submodules: recursive
185-
186-
- name: Download app archive
187-
uses: actions/download-artifact@v7
188-
with:
189-
name: Saber-Archive-x86_64
190-
191-
- name: Rename app archive
192-
run: |
193-
mv Saber_*.tar.gz Saber_snapshot.tar.gz
194-
195-
- name: Patch manifest to use local archive
196-
run: |
197-
# Add --no-same-owner to tar in build-commands
198-
jq '.modules? |= map(if type=="object" and .name=="saber" then .["build-commands"] |= map(if type=="string" then sub("tar -xf "; "tar --no-same-owner -xf ") else . end) else . end)' com.adilhanney.saber.json > tmp.json && mv tmp.json com.adilhanney.saber.json
199-
200-
# Replace sources with local archive
201-
jq '.modules[]? |= if type=="object" and .name=="saber" then .sources = [ {"type":"file","path":"./Saber_snapshot.tar.gz"} ] else . end' com.adilhanney.saber.json > tmp.json && mv tmp.json com.adilhanney.saber.json
202-
203-
- name: Build Flatpak
204-
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
205-
with:
206-
bundle: Saber_snapshot.flatpak
207-
manifest-path: com.adilhanney.saber.json
208-
upload-artifact: true

0 commit comments

Comments
 (0)