Merge pull request #186 from AndreRenaud/enumerator-build
Workflows: Use CGO_ENABLED=1 for MacOS
This commit is contained in:
11
.github/workflows/test.yaml
vendored
11
.github/workflows/test.yaml
vendored
@@ -19,9 +19,18 @@ jobs:
|
|||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: "1.17"
|
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 ./...
|
run: GOARCH=amd64 go build -v ./...
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- name: Build ARM64
|
||||||
|
run: GOARCH=arm64 go build -v ./...
|
||||||
|
shell: bash
|
||||||
- name: Install socat
|
- name: Install socat
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: sudo apt-get install socat
|
run: sudo apt-get install socat
|
||||||
|
|||||||
Reference in New Issue
Block a user