Skip to content

Don't fetch piece priority for ended webseed requests #1608

Don't fetch piece priority for ended webseed requests

Don't fetch piece priority for ended webseed requests #1608

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
test:
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ["1.24"]
# windows-latest removed for now: known issues with file handles to
# resolved. could set classic file io mode.
os: [macos-latest, ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: dtolnay/rust-toolchain@stable
- name: Build possum
run: |
cd storage/possum/lib
cargo build --lib
- run: brew install macfuse fuse-t && echo 'FUSE_FORCE_BACKEND=fuse-t' >> $GITHUB_ENV
if: matrix.os == 'macos-latest'
- run: sudo apt install fuse
if: matrix.os == 'ubuntu-latest'
# Separate to remove downloading spam and possible caching improvement.
- run: go mod download
- run: go test -race ./...
# Separate benchmarks because I think it modifies the stderr handling.
- run: go test -race -bench . -benchtime 2x -run @ ./...
# Test on 386 for atomic alignment and other bad 64-bit assumptions
- if: matrix.os != 'macos-latest'
run: GOARCH=386 go test -run @ ./...
- name: Some packages compile for WebAssembly
run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...