diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index c1a6a4973..fee4857d6 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -22,7 +22,8 @@ jobs: - name: OSXCross for CGO Support run: | - git clone https://github.com/plentico/osxcross-target.git /osxcross/target + mkdir ../../osxcross + git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5e5bbf4ad..a63d7fe38 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -38,8 +38,8 @@ builds: - id: macos_m1 env: - CGO_ENABLED=1 - - CC=/osxcross/target/bin/o64-clang - - CXX=/osxcross/target/bin/o64-clang++ + - CC=/home/runner/work/osxcross/target/bin/o64-clang + - CXX=/home/runner/work/osxcross/target/bin/o64-clang++ goos: - darwin goarch: @@ -47,7 +47,7 @@ builds: - id: macos_intel env: - - "CGO_ENABLED=1" + - CGO_ENABLED=1 - CC=/home/runner/work/osxcross/target/bin/oa64-clang - CXX=/home/runner/work/osxcross/target/bin/oa64-clang++ goos: