-
Notifications
You must be signed in to change notification settings - Fork 0
22 lines (22 loc) · 954 Bytes
/
ci.yml
File metadata and controls
22 lines (22 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.26'
- run: go build ./...
- name: Vet (excluding purego GPU bindings)
run: |
# Run go vet on all packages except those with intentional
# unsafe.Pointer usage for GPU runtime bindings via purego/dlopen.
# These warnings are expected and documented in docs/QUALITY.md.
go vet $(go list ./... | grep -v '/internal/cuda$' | grep -v '/internal/cublas$' | grep -v '/internal/hip$' | grep -v '/internal/opencl$' | grep -v '/internal/cudnn$' | grep -v '/internal/tensorrt$' | grep -v '/internal/fpga$' | grep -v '/internal/sycl$' | grep -v '/internal/metal$' | grep -v '/internal/pjrt$' | grep -v '/internal/nccl$')
- run: go test -race -timeout 300s ./...