Skip to content

Commit

Permalink
flatpak: try to build by my own
Browse files Browse the repository at this point in the history
  • Loading branch information
rainu committed Jan 15, 2025
1 parent cb89af7 commit e12b9a4
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ jobs:
name: "Build (ask-mai-flatpak)"
needs: test
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-40
options: --privileged
# container:
# image: bilelmoussaoui/flatpak-github-actions:gnome-40
# options: --privileged
steps:
- uses: actions/checkout@v4
# Version ldflags
Expand All @@ -170,13 +170,19 @@ jobs:
echo -n " -X 'main.tag=${GITHUB_REF#refs/tags/}'" >> .ldflags
echo -n " -X 'main.built=$(date +%s%3N)'" >> .ldflags
# - name: Linux - Build (debug)
# uses: flatpak/flatpak-github-actions/flatpak-builder@v6.3
# with:
# verbose: true
# manifest-path: de.rainu.ask-mai.yml
# cache-key: flatpak-builder-${{ github.sha }}
# bundle: ask-mai-linux-amd64-debug.flatpak

- name: Linux - Build (debug)
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.3
with:
verbose: true
manifest-path: de.rainu.ask-mai.yml
cache-key: flatpak-builder-${{ github.sha }}
bundle: ask-mai-linux-amd64-debug.flatpak
run: |
sudo apt-get update && sudo apt-get install flatpak flatpak-builder
flatpak-builder .flatpak-build de.rainu.ask-mai.yml --repo=.flatpak-repo --install-deps-from=flathub --force-clean --default-branch=master --arch=x86_64 --ccache
flatpak build-bundle .flatpak-repo ask-mai-linux-amd64-debug.flatpak --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo --arch=x86_64 de.rainu.ask-mai master
- name: Common - Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit e12b9a4

Please sign in to comment.