File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 44 push :
55 # pull_request:
66
7+ env :
8+ GOEXPERIMENT : simd
9+ GOWORK : off
10+
711jobs :
812 test-simd :
913 # GitHub hosted runners run on several architectures.
3438 - name : Benchmark
3539 run : |
3640 cd plugins/exp/simd/
37- GOEXPERIMENT=simd go test -run=^Benchmark -benchmem -bench ./...
41+ GOWORK=off GOEXPERIMENT=simd go test -run=^Benchmark -benchmem -bench ./...
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ MODULES=$(shell go list -m)
22
33build :
44 go build -v ${MODULES} ./...
5+ @if [ -n " $( GOEXPERIMENT) " ]; then cd ./plugins/exp/simd && GOWORK=off GOEXPERIMENT=simd go build -v ./...; fi
56
67test :
78 go test -race ${MODULES} ./...
9+ @if [ -n " $( GOEXPERIMENT) " ]; then cd ./plugins/exp/simd && GOWORK=off GOEXPERIMENT=simd go test -race ./...; fi
10+
811watch-test :
912 reflex -t 50ms -s -- sh -c ' gotest -timeout 300s -race ${MODULES} ./...'
1013
@@ -34,10 +37,12 @@ tools:
3437
3538lint :
3639 golangci-lint run --timeout 60s --max-same-issues 50 ./...
40+ @if [ -n " $( GOEXPERIMENT) " ]; then cd ./plugins/exp/simd && GOWORK=off GOEXPERIMENT=simd golangci-lint run --timeout 60s --max-same-issues 50 ./...; fi
3741 headercheck --config ./licenses/headercheck.yaml .
3842 # mdsf verify --debug --log-level warn docs/
3943lint-fix :
4044 golangci-lint run --timeout 60s --max-same-issues 50 --fix ./...
45+ @if [ -n " $( GOEXPERIMENT) " ]; then cd ./plugins/exp/simd && GOWORK=off GOEXPERIMENT=simd golangci-lint run --timeout 60s --max-same-issues 50 --fix ./...; fi
4146 headercheck --config ./licenses/headercheck.yaml --fix .
4247 # mdsf format --debug --log-level warn docs/
4348
Original file line number Diff line number Diff line change 1- go 1.26
1+ go 1.18
22
33//
44// Base library
1717 ./plugins/encoding/gob
1818 ./plugins/encoding/json
1919 // Commented out because requires go>=1.26
20- ./plugins/exp/simd
20+ // ./plugins/exp/simd
2121 // Commented out because requires go>=1.25
2222 // ./plugins/encoding/json/v2
2323 ./plugins/fsnotify
You can’t perform that action at this time.
0 commit comments