Bump the go group with 3 updates (#76) #133
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: tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Run test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
check-latest: true | |
go-version-file: 'go.mod' | |
- name: Install pkg-config on ${{ matrix.os }} | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install pkg-config | |
- name: Run tests on macos | |
if: matrix.os == 'macos-latest' | |
run: | | |
export CGO_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libxml2" | |
go test ./... | |
- name: Run tests on linux and windows | |
if: matrix.os != 'macos-latest' | |
run: | | |
go test ./... | |
- name: Build and Install | |
run: | | |
go run build/make.go | |
go run build/make.go --install |