|
7 | 7 | strategy: |
8 | 8 | matrix: |
9 | 9 | go: [ "1.18", oldstable, stable ] |
10 | | - runs-on: [ Linux, X64 ] |
| 10 | + runs-on: [ ubuntu-latest, macos-latest ] |
11 | 11 | steps: |
12 | 12 | - uses: actions/checkout@v4 |
13 | 13 | - name: Set up Go |
14 | 14 | uses: actions/setup-go@v5 |
15 | 15 | with: |
16 | 16 | go-version: ${{ matrix.go }} |
17 | | - cache: false # don't use cache for self-hosted runners |
18 | | - - name: Test packages # only tests reflect pkg, JIT pkgs is not supported |
19 | | - run: go test -race ./internal/reflect |
| 17 | + - name: Test packages |
| 18 | + run: go test -race ./... |
20 | 19 | - name: Test ./tests & Benchmark |
21 | 20 | run: cd tests && go test -bench=. -benchmem -benchtime=100ms |
22 | | - |
23 | | - unittest-arm64: |
24 | | - strategy: |
25 | | - matrix: |
26 | | - go: [ "1.18", oldstable, stable ] |
27 | | - runs-on: [ ARM64 ] # It's OK under Linux or macOS |
28 | | - steps: |
29 | | - - uses: actions/checkout@v4 |
30 | | - - name: Set up Go |
31 | | - uses: actions/setup-go@v5 |
32 | | - with: |
33 | | - go-version: ${{ matrix.go }} |
34 | | - cache: false # don't use cache for self-hosted runners |
35 | | - - name: Test packages # only tests reflect pkg, JIT pkgs is not supported |
36 | | - run: go test -race ./internal/reflect |
37 | | - - name: Test ./tests & Benchmark |
38 | | - run: cd tests && go test -bench=. -benchmem -benchtime=100ms |
39 | | - |
40 | | - unittest-legacy: |
41 | | - strategy: |
42 | | - matrix: |
43 | | - go: [ "1.18", "1.23" ] # jit works <= 1.23 |
44 | | - runs-on: [ Linux, X64 ] |
45 | | - steps: |
46 | | - - uses: actions/checkout@v4 |
47 | | - - name: Set up Go |
48 | | - uses: actions/setup-go@v5 |
49 | | - with: |
50 | | - go-version: ${{ matrix.go }} |
51 | | - cache: false # don't use cache for self-hosted runners |
52 | | - - name: Build with frugal_jit |
53 | | - run: go build -v -tags=frugal_jit ./... |
54 | | - - name: Test with frugal_jit |
55 | | - run: go test -tags=frugal_jit ./... |
0 commit comments