Release for v0.0.1 (#3) #17
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go 1.26 | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.0-rc.1' | |
| - name: Run tests | |
| env: | |
| GOEXPERIMENT: simd | |
| run: go test -v ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go 1.26 | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.0-rc.1' | |
| - name: Install golangci-lint v2 | |
| run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest | |
| - name: Run golangci-lint | |
| env: | |
| GOEXPERIMENT: simd | |
| run: golangci-lint run | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go 1.26 | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.0-rc.1' | |
| - name: Run benchmarks | |
| env: | |
| GOEXPERIMENT: simd | |
| run: | | |
| go test -bench=. -benchmem -count=5 ./... | tee benchmark.txt | |
| # Only store benchmark results when pushing to main | |
| - name: Store benchmark result | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| tool: 'go' | |
| output-file-path: benchmark.txt | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: true | |
| comment-on-alert: true | |
| alert-threshold: '150%' | |
| fail-on-alert: false |