forked from BobuSumisu/aho-corasick
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.39 KB
/
Copy pathci.yml
File metadata and controls
49 lines (46 loc) · 1.39 KB
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
41
42
43
44
45
46
47
48
49
name: CI
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
# ubuntu-24.04-arm assembles index_arm64.s and runs the NEON
# kernel differential and guard-page tests natively; ubuntu-24.04
# does the same for the SSE2 kernels in index_amd64.s.
os: [ubuntu-24.04, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: gofmt
run: test -z "$(gofmt -l .)"
- name: vet
run: go vet ./...
- name: test
run: go test ./...
- name: vet and test with purego tag
run: |
go vet -tags purego ./...
go test -tags purego ./...
- name: cross-compile vet for other arm64 targets
if: matrix.os == 'ubuntu-24.04-arm'
run: |
for goos in darwin windows freebsd netbsd openbsd; do
echo "vet GOOS=$goos GOARCH=arm64"
GOOS=$goos GOARCH=arm64 go vet ./...
done
- name: cross-compile vet for other amd64 targets
if: matrix.os == 'ubuntu-24.04'
run: |
for goos in darwin windows freebsd netbsd openbsd; do
echo "vet GOOS=$goos GOARCH=amd64"
GOOS=$goos GOARCH=amd64 go vet ./...
done