Flatpak workflow: smoke test of the bundle, artifact names
Install the bundle, run openpu-cli and check the translations, icon, metainfo and gtkmm library inside it. The bundle is OpenPU.flatpak, so artifacts are OpenPU-<arch>.flatpak instead of repeating the arch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
1 parent
b915667fba
commit
d9fad42eda
1 file changed
+8
-2
@@ -35,11 +35,17 @@ jobs:
|
|||||||
|
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
with:
|
with:
|
||||||
bundle: OpenPU-${{ matrix.arch }}.flatpak
|
bundle: OpenPU.flatpak # artifact: OpenPU-<arch>.flatpak
|
||||||
manifest-path: packaging/flatpak/io.github.openpu.OpenPU.yml
|
manifest-path: packaging/flatpak/io.github.openpu.OpenPU.yml
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
cache-key: flatpak-builder-${{ matrix.arch }}-${{ hashFiles('packaging/flatpak/*.yml') }}
|
cache-key: flatpak-builder-${{ matrix.arch }}-${{ hashFiles('packaging/flatpak/*.yml') }}
|
||||||
|
|
||||||
|
- name: Smoke test
|
||||||
|
run: |
|
||||||
|
flatpak install --user -y --noninteractive --bundle OpenPU.flatpak
|
||||||
|
flatpak run --command=openpu-cli io.github.openpu.OpenPU --version
|
||||||
|
flatpak run --command=sh io.github.openpu.OpenPU -c 'ls -l /app/share/locale/fr/LC_MESSAGES/openpu.mo /app/share/icons/hicolor/scalable/apps/io.github.openpu.OpenPU.svg /app/share/metainfo/io.github.openpu.OpenPU.metainfo.xml /app/lib/libgtkmm-4.0.so.0'
|
||||||
|
|
||||||
- name: Attach to the release
|
- name: Attach to the release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
env:
|
env:
|
||||||
@@ -48,7 +54,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory "$PWD"
|
git config --global --add safe.directory "$PWD"
|
||||||
bundle="OpenPU-${TAG#v}-${{ matrix.arch }}.flatpak"
|
bundle="OpenPU-${TAG#v}-${{ matrix.arch }}.flatpak"
|
||||||
mv "OpenPU-${{ matrix.arch }}.flatpak" "$bundle"
|
mv OpenPU.flatpak "$bundle"
|
||||||
gh release view "$TAG" >/dev/null 2>&1 ||
|
gh release view "$TAG" >/dev/null 2>&1 ||
|
||||||
gh release create "$TAG" --verify-tag --title "OpenPU ${TAG#v}" --notes-from-tag ||
|
gh release create "$TAG" --verify-tag --title "OpenPU ${TAG#v}" --notes-from-tag ||
|
||||||
gh release view "$TAG" >/dev/null
|
gh release view "$TAG" >/dev/null
|
||||||
|
|||||||
Reference in new issue
Block a user