Skip to content

Commit

Permalink
using cross-compile thing
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Dec 14, 2021
1 parent fd687eb commit 34c6664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -18,9 +18,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2

- name: GCC multilib
- name: OSXCross for CGO Support
run: |
sudo apt-get install gcc-multilib g++-multilib clang-11 --install-suggests
mkdir ../plenti-osxcross
git clone https://github.com/plentico/plenti-osxcross.git ../plenti-osxcross/target
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml
Expand Up @@ -18,7 +18,9 @@ builds:
goarch:
- amd64
env:
- CGO_ENABLED=0
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/o64-clang
- CXX=/home/runner/work/osxcross/target/bin/o64-clang++

- id: buffalo_pop_linux
goos:
Expand Down

0 comments on commit 34c6664

Please sign in to comment.