From c849534130ad06bc07f287cd22fcbdbc3dcd4149 Mon Sep 17 00:00:00 2001 From: VSteveHL Date: Mon, 7 Jul 2025 10:51:51 +0800 Subject: [PATCH 1/5] feat: Modify GitHub workflow file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have modified the `.github/workflows/release.yaml` file and made the following changes: - Removed the `repo` variable: - This variable specifies which repository the release targets. Since its default value is the current repository, I believe leaving it empty is reasonable. - Added `name` - Added `tag_name` - Added `body` to provide some contextual information. --- .github/workflows/release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d2a887c2..376beb70 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -46,8 +46,15 @@ jobs: - name: Release uses: softprops/action-gh-release@v2 with: - repo: ufo5260987423/scheme-langserver + name: Scheme LangServer Auto-generated Build + tag_name: automated_build files: | build/scheme-langserver-x86_64-linux-glibc build/scheme-langserver-x86_64-linux-musl + body: | + This is an automated release of Scheme LangServer. + + **Commit:** ${{ github.sha }} + **Branch:** ${{ github.ref_name }} + **Pipeline Run:** ${{ github.run_id }} From 43493029df8a24d4bea07cda46525383e5d818cf Mon Sep 17 00:00:00 2001 From: VSteveHL Date: Mon, 7 Jul 2025 13:27:03 +0800 Subject: [PATCH 2/5] fix: Fix Dockerfile.musl issue preventing --static compilation In commit 0d7952775bf576ae2cc862319c54b831e571411e, a modification was made to `.github/workflows/release.yaml`, adding the `--static` parameter in the "Compile executable on Linux musl" step. However, the corresponding `Dockerfile.musl` was not updated, which caused errors during the build process. This commit adds the `util-linux-static` package to `Dockerfile.musl`, allowing the build to proceed successfully. --- Dockerfile.musl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.musl b/Dockerfile.musl index a507f523..50bf9eb6 100644 --- a/Dockerfile.musl +++ b/Dockerfile.musl @@ -52,8 +52,8 @@ RUN akku install FROM alpine:latest ENV DEBIAN_FRONTEND=noninteractive -RUN apk update && apk add \ - git alpine-sdk util-linux-dev libuuid make +RUN apk update && apk add --no-cache \ + git alpine-sdk util-linux-dev libuuid make util-linux-static # add chez scheme COPY --from=build-chez /usr/bin/scheme /usr/bin/ From 2139c4174387ddd8c329cce613392edbaa07bd9b Mon Sep 17 00:00:00 2001 From: VSteveHL Date: Mon, 14 Jul 2025 21:22:50 +0800 Subject: [PATCH 3/5] Commented out the build step for the musl architecture. --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 376beb70..0189881b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,8 +18,8 @@ jobs: - name: Build Linux glibc image run: docker build . - - name: Build Linux musl image - run: docker build -f Dockerfile.musl . + # - name: Build Linux musl image + # run: docker build -f Dockerfile.musl . - name: Compile executable on Linux glibc run: | From c6b4c4672abac3386d0a7343af6d1f5c692665e6 Mon Sep 17 00:00:00 2001 From: VSteveHL Date: Mon, 14 Jul 2025 21:31:06 +0800 Subject: [PATCH 4/5] Add permissions for testing. --- .github/workflows/release.yaml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0189881b..0ed235c4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,6 +10,8 @@ on: jobs: build-and-release: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout @@ -32,16 +34,16 @@ jobs: mv run build/scheme-langserver-x86_64-linux-glibc || exit 1 ' - - name: Compile executable on Linux musl - run: | - mkdir -p build - docker run \ - -v ./build:/root/scheme-langserver/build/ \ - $(docker build -f Dockerfile.musl -q .) \ - ash -c 'source .akku/bin/activate - compile-chez-program run.ss --static - mv run build/scheme-langserver-x86_64-linux-musl || exit 1 - ' + # - name: Compile executable on Linux musl + # run: | + # mkdir -p build + # docker run \ + # -v ./build:/root/scheme-langserver/build/ \ + # $(docker build -f Dockerfile.musl -q .) \ + # ash -c 'source .akku/bin/activate + # compile-chez-program run.ss --static + # mv run build/scheme-langserver-x86_64-linux-musl || exit 1 + # ' - name: Release uses: softprops/action-gh-release@v2 From 46c259370f70f03afaa6d23d0b20bd43f005434a Mon Sep 17 00:00:00 2001 From: VSteveHL Date: Mon, 14 Jul 2025 21:34:00 +0800 Subject: [PATCH 5/5] Commented out the musl build artifact. --- .github/workflows/release.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0ed235c4..3bc5359b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,9 +50,8 @@ jobs: with: name: Scheme LangServer Auto-generated Build tag_name: automated_build - files: | - build/scheme-langserver-x86_64-linux-glibc - build/scheme-langserver-x86_64-linux-musl + files: build/scheme-langserver-x86_64-linux-glibc + # build/scheme-langserver-x86_64-linux-musl body: | This is an automated release of Scheme LangServer.