-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (36 loc) · 1.02 KB
/
ci.yml
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
35
36
37
38
39
40
on: [push]
name: CI
jobs:
test:
env:
GOPATH: ${{ github.workspace }}
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
strategy:
matrix:
go-version: [1.21.x]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout Code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Install ONNX
run: |
wget https://github.com/microsoft/onnxruntime/releases/download/v1.16.2/onnxruntime-linux-x64-1.16.2.tgz
tar xf onnxruntime-linux-x64-1.16.2.tgz
sudo cp ./onnxruntime-linux-x64-1.16.2/include/* /usr/local/include
sudo cp ./onnxruntime-linux-x64-1.16.2/lib/* /usr/local/lib
sudo ldconfig
- name: Execute Tests
run: |
go mod download
go mod verify
make test
env:
CI: true