From aedbc16d8da1d3d6f33d5b990ea9c11808e35ff7 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Mon, 2 Jun 2025 15:01:53 +0530 Subject: [PATCH] Build debug AppImage --- .github/workflows/build.yml | 2 +- .github/workflows/integration.yml | 2 +- Linux/build.sh | 6 ++++-- Makefile | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee605cd1..3dd5bdfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ on: push: branches: - main - pull_request: + # pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 215d46ba..00f130eb 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Build - run: docker compose run --build --rm xtool Linux/build.sh + run: XTL_CONFIG=debug make linux-dist - name: Upload xtool uses: actions/upload-artifact@v4 with: diff --git a/Linux/build.sh b/Linux/build.sh index 87dff15d..072d33cd 100755 --- a/Linux/build.sh +++ b/Linux/build.sh @@ -13,8 +13,10 @@ fi rm -rf staging/tmp mkdir -p staging/tmp staging/linuxdeploy -swift build --package-path .. -c release --product xtool --static-swift-stdlib -bin="$(swift build --package-path .. -c release --show-bin-path)" +RESOLVED_CONFIG="${XTL_CONFIG:-release}" + +swift build --package-path .. -c "${RESOLVED_CONFIG}" --product xtool --static-swift-stdlib +bin="$(swift build --package-path .. -c "${RESOLVED_CONFIG}" --show-bin-path)" strip "${bin}/xtool" curr_git_info="$(curl -fsSL https://api.github.com/repos/linuxdeploy/linuxdeploy/git/refs/tags/continuous)" diff --git a/Makefile b/Makefile index 565ebbfc..4666bf8d 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ linux-clean: .PHONY: linux-dist # dist build for Linux linux-dist: - docker compose run --build --rm xtool Linux/build.sh + docker compose run --build -e XTL_CONFIG --rm xtool Linux/build.sh .PHONY: mac # dev build for macOS