Skip to content

Handle multistream with readahead (#68) #10

Handle multistream with readahead (#68)

Handle multistream with readahead (#68) #10

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions: read-all
jobs:
build:
strategy:
matrix:
go-version: [1.23.x, 1.24.x, 1.25.x]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
CGO_ENABLED: 0
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v5.5.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
- name: Test No-unsafe
run: go test -tags=nounsafe ./...
- name: Test Race 1 CPU
env:
CGO_ENABLED: 1
run: go test -cpu=1 -short -race -tags=nounsafe -v ./...
- name: Test Race 4 CPU
env:
CGO_ENABLED: 1
run: go test -cpu=4 -short -race -tags=nounsafe -v ./...
build-special:
env:
CGO_ENABLED: 0
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5.5.0
with:
go-version: 1.25.x
- name: Checkout code
uses: actions/checkout@v4
- name: fmt
run: diff <(gofmt -d .) <(printf "")
- name: Test 386
run: GOOS=linux GOARCH=386 go test -short ./...