Skip to content

Bump the go group with 2 updates #128

Bump the go group with 2 updates

Bump the go group with 2 updates #128

Workflow file for this run

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