-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 986 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build, test and benchmark
env:
CGO_CFLAGS: "-I/usr/include/lpsolve"
CGO_LDFLAGS: "-llpsolve55 -lm -ldl -lcolamd"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
jobs:
run-test-benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: "Install required package"
run: sudo apt install liblpsolve55-dev
- name: Build
run: go build -v
- name: Test
run: go test -v
- name: Run benchmarks
run: python3 benchmark.py > benchmark.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'customBiggerIsBetter'
output-file-path: benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true