From ea53fd309dee5f332e925ba85e75777f4334200b Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Mon, 23 Jun 2025 01:41:00 +0200 Subject: [PATCH] Add workflow to build the appimage --- .github/workflows/build-appimage.yaml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build-appimage.yaml diff --git a/.github/workflows/build-appimage.yaml b/.github/workflows/build-appimage.yaml new file mode 100644 index 0000000..9453d51 --- /dev/null +++ b/.github/workflows/build-appimage.yaml @@ -0,0 +1,43 @@ +name: Build appimage + +# Controls when the workflow will run +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + # container: + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Check out repository + run: git clone https://github.com/christofsteel/syng /syng + - name: Extract version from Poetry + id: get_version + run: cd /syng && echo "VERSION=$(poetry version -s)" >> $GITHUB_ENV + shell: bash + - name: Preparing Build dir + run: | + mkdir /app + mkdir /app/bin + cp /syng/resources/appimage/build.sh /app/build.sh + cp /syng/resources/appimage/bin/* /app/bin/ + - name: Building AppDir + uses: addnab/docker-run-action@v3 + with: + image: ghcr.io/christofsteel/syng-appimage-builder:main + options: -v /app:/app + run: | + /app/build.sh + export APPIMAGE_EXTRACT_AND_RUN=1 + /app/linuxdeploy-x86_64.AppImage --plugin qt --appdir /app/AppDir --output appimage + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: Syng Version ${{ env.VERSION }} AppImage + path: /app/Syng-x86_64.AppImage