3 on: [push, pull_request]
9 runs-on: ${{ matrix.os }}
12 go-version: [ '1.20' ]
13 os: [windows-latest, macos-latest, ubuntu-latest]
16 - uses: actions/checkout@v2
17 - uses: ./.github/actions/go-common
18 - run: go test -race -count 2 ./...
21 runs-on: ubuntu-latest
24 go-version: [ '1.20' ]
27 - uses: actions/checkout@v2
28 - uses: ./.github/actions/go-common
29 - run: go test -race -run @ -bench . -benchtime 2x ./...
32 runs-on: ubuntu-latest
35 go-version: [ '1.20' ]
38 - uses: actions/checkout@v2
39 - uses: ./.github/actions/go-common
40 - run: go test -run @ -bench . ./...
43 runs-on: ubuntu-latest
46 go-version: [ '1.20' ]
49 - uses: actions/checkout@v2
50 - uses: ./.github/actions/go-common
51 - run: GOARCH=386 go test ./...
52 - run: GOARCH=386 go test ./... -run @ -bench .
55 runs-on: ubuntu-latest
58 go-version: [ '1.20' ]
61 - uses: actions/checkout@v2
62 - uses: ./.github/actions/go-common
63 - name: Some packages compile for WebAssembly
64 run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
67 runs-on: ubuntu-latest
70 go-version: [ '1.20' ]
73 - uses: actions/checkout@v2
74 - uses: ./.github/actions/go-common
77 # Need master for cross-compiling fix
78 go install -v -x github.com/anacrolix/godo@master
82 run: sudo apt install pv fuse
84 - name: torrentfs end-to-end test
85 # Test on 386 for atomic alignment and other bad 64-bit assumptions
86 run: GOARCH=386 fs/test.sh