diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a13c8ef..4b000b1 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 cf1893b..0000000 --- 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 84f349e..0000000 --- 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