diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db62918..699e24a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,8 +45,9 @@ jobs: - name: OSXCross for CGO Support run: | + mkdir ../../osxcross wget -P ~ https://musl.cc/aarch64-linux-musl-cross.tgz - tar -xvf ~/aarch64-linux-musl-cross.tgz -C ~ + tar -xvf ~/aarch64-linux-musl-cross.tgz -C ../../osxcross/target - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e968b62..4437923 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -14,7 +14,7 @@ builds: - -extldflags=-static env: - CGO_ENABLED=1 - - CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc + - CC=/home/runner/work/osxcross/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc binary: "{{ .ProjectName }}" goos: - linux