Add support for all CLP FFI functionality and refactor existing code: #36
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: Build | |
on: | |
pull_request: | |
push: | |
workflow_call: | |
jobs: | |
prebuilt-test: | |
strategy: | |
matrix: | |
# os: [macos-latest, ubuntu-latest] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v4 | |
- run: go build ./... | |
- run: go test ./... | |
build-lint-test: | |
strategy: | |
matrix: | |
# os: [macos-latest, ubuntu-latest] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v4 | |
- if: ${{ 'macos-latest' == matrix.os }} | |
run: | | |
brew update | |
brew install llvm | |
- name: Remove repo's generated c++ libraries and go code | |
run: | | |
rm ./lib/* ./**/*_string.go | |
- run: | | |
go install mvdan.cc/gofumpt@latest | |
go install github.com/segmentio/golines@latest | |
go install golang.org/x/tools/cmd/stringer@latest | |
- run: go generate ./... | |
- run: | | |
diff="$(golines -m 100 -t 4 --base-formatter='gofumpt' --dry-run .)" | |
if [[ -n "$diff" ]]; then echo "$diff"; exit 1; fi | |
# - run: cmake -S ./cpp -B ./cpp/build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 | |
- run: go test ./... |