Workflows: Use CGO_ENABLED=1 for MacOS

Also enable explicit ARM64 builds
This commit is contained in:
Andre Renaud
2024-05-28 09:10:28 +12:00
parent 0925f99089
commit 03c961bc8a

View File

@@ -19,9 +19,18 @@ jobs:
- uses: actions/setup-go@v1
with:
go-version: "1.17"
- name: Build native
- name: Setup CGO Environment
run: |
if [ ${{ matrix.os }} == 'macOS-latest' ] ; then
echo "CGO_ENABLED=1" >> "$GITHUB_ENV"
fi
shell: bash
- name: Build AMD64
run: GOARCH=amd64 go build -v ./...
shell: bash
- name: Build ARM64
run: GOARCH=arm64 go build -v ./...
shell: bash
- name: Install socat
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install socat