3 on: [push, pull_request]
9 runs-on: ${{ matrix.os }}
12 go-version: [ '1.21' ]
13 os: [windows-latest, macos-latest, ubuntu-latest]
16 - uses: actions/checkout@v2
17 - uses: ./.github/actions/go-common
18 - run: go test -race $(go list ./... | grep -v /fs | grep -v /possum)
19 continue-on-error: true
20 - run: go test -race ./fs/...
21 if: ${{ ! contains(matrix.os, 'windows') }}
22 continue-on-error: true
25 runs-on: ubuntu-latest
28 go-version: [ '1.21' ]
31 - uses: actions/checkout@v2
32 - uses: ./.github/actions/go-common
33 - run: go test -race -run @ -bench . -benchtime 2x ./...
36 runs-on: ubuntu-latest
39 go-version: [ '1.21' ]
42 - uses: actions/checkout@v2
43 - uses: ./.github/actions/go-common
44 - run: go test -run @ -bench . ./...
48 runs-on: ubuntu-latest
51 go-version: [ '1.21' ]
54 - uses: actions/checkout@v2
55 - uses: ./.github/actions/go-common
56 - run: GOARCH=386 go test $(go list ./... | grep -v /possum)
57 continue-on-error: true
58 - run: GOARCH=386 go test ./... -run @ -bench .
61 runs-on: ubuntu-latest
64 go-version: [ '1.21' ]
67 - uses: actions/checkout@v2
68 - uses: ./.github/actions/go-common
69 - name: Some packages compile for WebAssembly
70 run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
73 continue-on-error: true
75 runs-on: ${{ matrix.os }}
78 go-version: [ '1.21' ]
82 - uses: actions/checkout@v2
83 - uses: ./.github/actions/go-common
87 # Need master for cross-compiling fix
88 go install -v -x github.com/anacrolix/godo@v1
92 run: sudo apt install pv fuse
94 - name: torrentfs end-to-end test
95 # Test on 386 for atomic alignment and other bad 64-bit assumptions
96 run: GOARCH=386 fs/test.sh
99 # Github broke FUSE on MacOS, I'm not sure what the state is.
102 # timeout-minutes: 15
103 # runs-on: ${{ matrix.os }}
106 # go-version: [ '1.20' ]
110 # - uses: actions/checkout@v2
111 # - uses: ./.github/actions/go-common
113 # - run: brew install macfuse pv md5sha1sum bash
115 # - name: Install godo
116 # run: go install -v github.com/anacrolix/godo@master
118 # - name: torrentfs end-to-end test
120 # # Pretty sure macos on GitHub CI has issues with the fuse driver now.
121 # continue-on-error: true