-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (36 loc) · 928 Bytes
/
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
name: ci
on: [push]
jobs:
test:
name: "run tests"
strategy:
fail-fast: false
matrix:
go: [ "1.21", "1.22" ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y llvm
clang --version
llc --version
- name: build examples
working-directory: examples
run: |
TARGET=bin/main make all
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
skip-pkg-cache: true
- name: staticcheck
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1.6"
install-go: false
cache-key: ${{ matrix.go }}
- run: "go test -exec sudo ./..."