3 on: [push, pull_request]
15 - uses: actions/checkout@v2
18 if: matrix.go-version != 'tip'
19 uses: actions/setup-go@v2
21 go-version: ${{ matrix.go-version }}
24 if: matrix.go-version == 'tip'
26 git clone --depth=1 https://go.googlesource.com/go "$HOME/gotip"
29 echo "GOROOT=$HOME/gotip" >> "$GITHUB_ENV"
30 echo "$(go env GOPATH)/bin:$PATH" >> "$GITHUB_PATH"
31 echo "$HOME/gotip/bin:$PATH" >> "$GITHUB_PATH"
35 run: go test -race -count 2 ./...
37 - name: Test Benchmarks
38 run: go test -race -run @ -bench . -benchtime 2x ./...
41 run: go test -run @ -bench . ./...
44 run: GOARCH=386 go test ./... -bench .
45 continue-on-error: true
47 - name: Some packages compile for WebAssembly
48 run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
49 # https://github.com/pion/webrtc/issues/2099
50 continue-on-error: true
54 # Need master for cross-compiling fix
55 go install -v -x github.com/anacrolix/godo@master
59 run: sudo apt install pv fuse
61 - name: torrentfs end-to-end test
62 # Test on 386 for atomic alignment and other bad 64-bit assumptions
63 run: GOARCH=386 fs/test.sh