fix llvm/clang version to 18 #11
Workflow file for this run
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: "Test" | |
on: | |
pull_request: | |
push: | |
workflow_call: | |
jobs: | |
package-test: | |
strategy: | |
matrix: | |
go: ["1.22"] | |
os: ["ubuntu-latest", "macos-latest"] | |
runs-on: "${{ matrix.os }}" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: "Setup Go" | |
uses: "actions/setup-go@v5" | |
with: | |
go-version: "${{ matrix.go }}" | |
- name: "Unit tests" | |
run: | | |
go clean -cache | |
go test -count=1 ./... | |
full-build-test: | |
strategy: | |
matrix: | |
go: ["1.22"] | |
os: ["ubuntu-latest", "macos-latest"] | |
runs-on: "${{ matrix.os }}" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
with: | |
submodules: "recursive" | |
- name: "Setup Go" | |
uses: "actions/setup-go@v5" | |
with: | |
go-version: "${{ matrix.go }}" | |
- name: "Macos: install clang/llvm" | |
if: "${{ matrix.os == 'macos-latest' }}" | |
run: | | |
brew update | |
brew install llvm | |
- name: "Remove packaged c++ libraries and go code" | |
run: | | |
rm ./lib/* ./**/*_string.go | |
- name: "Generate go code and build+install c++ library" | |
run: | | |
go install golang.org/x/tools/cmd/stringer@latest | |
go generate ./... | |
- name: "Unit tests" | |
run: | | |
go clean -cache | |
go test -count=1 ./... |