From c586553b7a3e51758aff27a6455fa6d5108868ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gianguido=20Sor=C3=A0?= Date: Wed, 21 Feb 2024 12:56:12 +0100 Subject: [PATCH] append osxcross binaries to $PATH --- .github/workflows/goreleaser.yml | 3 +++ .goreleaser.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 708b51af6..4e0df82fa 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -29,6 +29,9 @@ jobs: with: osx-version: "14.0" + - name: Add osxcross binaries to path + run: | + echo "/home/runner/work/_actions/Timmmm/setup-osxcross/main/osxcross/target/bin" >> $GITHUB_PATH - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 00bc38f6c..40a417d40 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -38,8 +38,8 @@ builds: - id: macos_intel env: - CGO_ENABLED=1 - - CC={{.Env.OSXCROSS_FOLDER}}/target/bin/o64-clang - - CXX={{.Env.OSXCROSS_FOLDER}}/target/bin/o64-clang++ + - CC=o64-clang + - CXX=o64-clang++ goos: - darwin goarch: @@ -48,8 +48,8 @@ builds: - id: macos_m1 env: - CGO_ENABLED=1 - - CC={{.Env.OSXCROSS_FOLDER}}/target/bin/oa64-clang - - CXX={{.Env.OSXCROSS_FOLDER}}/target/bin/oa64-clang++ + - CC=oa64-clang + - CXX=oa64-clang++ goos: - darwin goarch: