From 0a2dc1a7e93ccfbe5b3b9a9cc311228c2f363bce Mon Sep 17 00:00:00 2001 From: xvzc <45588457+xvzc@users.noreply.github.com> Date: Wed, 21 Aug 2024 01:42:47 +0900 Subject: [PATCH] cd: support self-contained releases (#169) --- .github/workflows/release.yaml | 1 + build | 8 -------- make-releases.sh | 11 ----------- 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100755 build delete mode 100644 make-releases.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a13c8ef1..4b000b12 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,6 +41,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG_NAME: ${{ needs.draft_release.outputs.tag_name }} + CGO_ENABLED: 0 steps: - uses: actions/checkout@v4 - name: Setup Go diff --git a/build b/build deleted file mode 100755 index cf1893b7..00000000 --- a/build +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -docker run --rm \ - -it \ - --workdir /app/out \ - -v ./:/app \ - golang:1.21-alpine \ - sh /app/make-releases.sh diff --git a/make-releases.sh b/make-releases.sh deleted file mode 100644 index 84f349e0..00000000 --- a/make-releases.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -for osarch in 'darwin/amd64' 'darwin/arm64' 'linux/amd64' 'linux/arm' 'linux/arm64' 'linux/mips' 'linux/mipsle' ; do - GOOS=${osarch%/*} GOARCH=${osarch#*/} go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi && - tar -zcvf spoof-dpi-${osarch%/*}-${osarch#*/}.tar.gz ./spoof-dpi && - rm -rf ./spoof-dpi -done - -for osarch in 'windows/amd64'; do - GOOS=${osarch%/*} GOARCH=${osarch#*/} go build -o spoof-dpi-${osarch%/*}-${osarch#*/}.exe -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi -done