Skip to content

Build with Go 1.22 and latest dependencies #115

Build with Go 1.22 and latest dependencies

Build with Go 1.22 and latest dependencies #115

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@v4
with:
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