Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
* Build with a few different versions of Go.
* Fix "go" executable not being found.
* Update actions/checkout to v4.
  • Loading branch information
SteffenL committed Aug 31, 2024
1 parent 56f456c commit 728307a
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,30 @@ on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.image }}
strategy:
matrix:
image:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.image }}
- macos-13 # x86_64 support needed for old versions of Go
- ubuntu-22.04
- windows-2022
go:
- '1.23'
- '1.14' # Made -mod=vendor default
- '1.13' # Earliest version we officially support
name: Build (${{ matrix.image }}, go ${{ matrix.go }})
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.0-dev
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build examples
run: go build ./examples/basic ./examples/bind
run: >
go build
./examples/basic
./examples/bind
- name: Run tests
run: go test

0 comments on commit 728307a

Please sign in to comment.