Skip to content

Commit

Permalink
Merge pull request #186 from AndreRenaud/enumerator-build
Browse files Browse the repository at this point in the history
Workflows: Use CGO_ENABLED=1 for MacOS
  • Loading branch information
cmaglie authored Jun 24, 2024
2 parents 0925f99 + 03c961b commit 4f7d935
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 4f7d935

Please sign in to comment.