Skip to content

goissue477

goissue477 #11

Workflow file for this run

name: goissue477
on:
workflow_dispatch:
jobs:
macosCheck:
runs-on: windows-latest
env:
CGO_ENABLED: 1
strategy:
matrix:
go: ['1.18', '1.19']
os: ['darwin']
arch: ['amd64']
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
# darwin
- name: 'Test on [darwin] arch [amd64]'
if: ${{ matrix.os == 'darwin' && contains(fromJson('["amd64"]'), matrix.arch) }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: |
echo ${CGO_ENABLED} //print empty
go env CGO_ENABLED //print 0 - should be 1
go test -v -race -coverprofile="coverage.txt" -covermode=atomic ./...