Skip to content

Commit

Permalink
append osxcross binaries to $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
gsora committed Feb 21, 2024
1 parent 27b3340 commit c586553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c586553

Please sign in to comment.