Skip to content

Commit

Permalink
Workflows: Use CGO_ENABLED=1 for MacOS
Browse files Browse the repository at this point in the history
Also enable explicit ARM64 builds
  • Loading branch information
AndreRenaud committed May 27, 2024
1 parent 0925f99 commit 03c961b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03c961b

Please sign in to comment.