reduce allocations (#52) #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: | |
| - "1.17" | |
| - "1.20" | |
| - "1.22" | |
| - "1.23" | |
| - "1.24" | |
| - "1.25" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: go test -v -bench=. -coverprofile=coverage.txt ./... | |
| env: | |
| GODEBUG: asynctimerchan=0 | |
| - name: Test with deadlock_disable tag | |
| run: go test -v -tags=deadlock_disable ./... | |
| - name: Test with goexperiment.synctest tag (Go 1.24+) | |
| if: matrix.go == '1.24' || matrix.go == '1.25' | |
| run: go test -v -tags=goexperiment.synctest ./... | |
| env: | |
| GODEBUG: asynctimerchan=0 | |
| - name: Test with deadlock_synctest tag (Go 1.25+) | |
| if: matrix.go == '1.25' | |
| run: go test -v -tags=deadlock_synctest ./... | |
| env: | |
| GODEBUG: asynctimerchan=0 |