File tree Expand file tree Collapse file tree 2 files changed +8
-28
lines changed
Expand file tree Collapse file tree 2 files changed +8
-28
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,14 @@ jobs:
2222 with :
2323 go-version : ' 1.21'
2424
25- - name : Install dependencies
25+ - name : Install cross-compilation tools
2626 run : |
2727 sudo apt-get update
28- sudo apt-get install -y gcc g++ make
29- sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
30- sudo apt-get install -y gcc-multilib g++-multilib
31- # Install OSXCross for macOS cross-compilation
32- mkdir -p /tmp/osxcross
33- cd /tmp/osxcross
34- wget https://github.com/tpoechtrager/osxcross/archive/master.zip
35- unzip master.zip
36- cd osxcross-master
37- wget -P tarballs https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz
38- UNATTENDED=1 ./build.sh
39- echo "OSXCROSS_ROOT=/tmp/osxcross/osxcross-master/target" >> $GITHUB_ENV
40- echo "/tmp/osxcross/osxcross-master/target/bin" >> $GITHUB_PATH
28+ sudo apt-get install -y \
29+ gcc g++ make \
30+ gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
31+ gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
32+ echo "Installing tools completed"
4133
4234 - name : Run GoReleaser
4335 uses : goreleaser/goreleaser-action@v4
4739 args : release --clean
4840 env :
4941 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ CGO_ENABLED : 1
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ builds:
1111 binary : filefusion
1212 goos :
1313 - linux
14- - darwin
1514 - windows
1615 goarch :
1716 - amd64
@@ -24,21 +23,9 @@ builds:
2423 - goos : linux
2524 goarch : arm64
2625 env :
26+ - CGO_ENABLED=1
2727 - CC=aarch64-linux-gnu-gcc
2828 - CXX=aarch64-linux-gnu-g++
29- - CGO_ENABLED=1
30- - goos : darwin
31- goarch : amd64
32- env :
33- - CC=o64-clang
34- - CXX=o64-clang++
35- - CGO_ENABLED=1
36- - goos : darwin
37- goarch : arm64
38- env :
39- - CC=oa64-clang
40- - CXX=oa64-clang++
41- - CGO_ENABLED=1
4229 ignore :
4330 - goos : windows
4431 goarch : arm64
You can’t perform that action at this time.
0 commit comments