diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ed2af3..eeb4dd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: run: sudo apt-get -y install gcc-aarch64-linux-gnu - name: Build Binary # see https://www.arp242.net/static-go.html - run: CGO_ENABLED=1 CC=${{ matrix.cc }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w -extldflags=-static -linkmode 'external'" -tags sqlite_omit_load_extension -o ${{ env.filename }} . + run: CGO_ENABLED=1 CC=${{ matrix.cc }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w -extldflags=-static" -tags sqlite_omit_load_extension,netgo,osusergo -o ${{ env.filename }} . # if the same arch as the runner, try the binary to verify it runs properly - name: test binary