Skip to content

Commit

Permalink
print CGO_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
timandy committed May 6, 2024
1 parent 36cbf9b commit 4d195d6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ jobs:
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
run: |
echo ${CGO_ENABLED}
go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
# linux
- name: 'Test on [linux] arch [386]'
Expand All @@ -235,7 +237,9 @@ jobs:
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
run: |
echo ${CGO_ENABLED}
go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
- name: 'Setup qemu-user-static on [linux] arch [armv6, armv7, arm64, mips, mipsle, mips64, mips64le, ppc64, ppc64le, riscv64, s390x]'
if: ${{ matrix.os == 'linux' && contains(fromJson('["armv6", "armv7", "arm64", "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x"]'), matrix.arch) }}
Expand Down Expand Up @@ -303,7 +307,9 @@ jobs:
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
run: |
echo %CGO_ENABLED%
go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...
# freebsd
- name: 'Build for [freebsd] arch [386, amd64]'
Expand Down

0 comments on commit 4d195d6

Please sign in to comment.