ci(github/workflows): build & release pipelines created #17
Workflow file for this run
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: Bazel Build | |
| on: | |
| push: | |
| tags: | |
| - "v**" | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.platform }} | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| platform: ["macos-latest", "ubuntu-latest"] | |
| experimental: [false] | |
| include: | |
| - platform: windows-latest | |
| experimental: true | |
| steps: | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| - name: Install Bazelisk | |
| run: | | |
| go install github.com/bazelbuild/bazelisk@latest | |
| echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
| export USE_BAZEL_VERSION=8.3.0 | |
| bazel version | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Build with Bazel | |
| run: | | |
| bazel build //tetris:tetris --verbose_failures | |
| echo "binary_path=$(bazel info bazel-bin)/tetris/tetris" >> $GITHUB_ENV | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tetris-artifact-${{ matrix.platform }} | |
| path: | | |
| ${{ env.binary_path }} | |
| ${{ env.binary_path }}.runfiles/ |