cmd/bench: benchmark filter #187
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: build | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "doc/**" | |
| - "example/**" | |
| - "**/*.md" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Set up build tools (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| C:/msys64/usr/bin/pacman -S --noconfirm --needed make mingw-w64-x86_64-gcc | |
| echo "C:/msys64/mingw64/bin" >> $GITHUB_PATH | |
| echo "C:/msys64/usr/bin" >> $GITHUB_PATH | |
| - run: make test | |
| - run: make test-lang | |
| if: runner.os != 'Windows' | |
| - run: make test-std | |
| if: runner.os != 'Windows' | |
| # mingw gcc lacks the sanitizers in the default CFLAGS. | |
| - run: make test-lang CFLAGS="-O1 -g -std=gnu11 -Wall -Wextra -Werror -Wno-shadow -Wno-unused-label" | |
| if: runner.os == 'Windows' |