Skip to content

Commit

Permalink
try different action for osxcross
Browse files Browse the repository at this point in the history
  • Loading branch information
gsora committed Feb 21, 2024
1 parent bc04e3d commit 9a3eaf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
- name: Set up aarch64 gcc
run: |
sudo apt install gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: OSXCross for CGO Support
run: |
mkdir ../../osxcross
git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target
- name: osxcross
uses: Timmmm/setup-osxcross@main
with:
osx-version: "14.2"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
Expand Down
12 changes: 6 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ upx:
# - GOSUMDB=sum.golang.org

builds:
- id: macos_m1
- id: macos_intel
env:
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/o64-clang
- CXX=/home/runner/work/osxcross/target/bin/o64-clang++
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64

- id: macos_intel
- id: macos_m1
env:
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/oa64-clang
- CXX=/home/runner/work/osxcross/target/bin/oa64-clang++
- CC=oa64-clang
- CXX=oa64-clang++
goos:
- darwin
goarch:
Expand Down

0 comments on commit 9a3eaf6

Please sign in to comment.