chore: remove env and use vendor native lib in 0.11.x (#397) #1022
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-test-macos | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- "releases/*" | |
jobs: | |
build-and-test: | |
# Ref: https://github.com/actions/runner-images/tree/main/images/macos | |
# Note: The arch of macos-13-xlarge and macos-14 is arm64 | |
strategy: | |
matrix: | |
os: [ macos-12, macos-13, macos-13-xlarge, macos-14 ] | |
cgo: [ '1', '0' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Go test | |
env: | |
CGO_ENABLED: ${{ matrix.cgo }} | |
run: go test ./... |