ci(github/workflows): build & release pipelines created #2
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 | ||
|
Check failure on line 1 in .github/workflows/build.yml
|
||
| on: | ||
| tag: | ||
| - "v*.*.*" | ||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.platform }} | ||
| strategy: | ||
| matrix: | ||
| fail-fast: true | ||
| platform: [ubuntu-latest, windows-latest, macos-latest] | ||
| steps: | ||
| - name: Install Bazelisk/Bazel | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: "1.26" | ||
| run: | | ||
| go install github.com/bazelbuild/bazelisk@latest | ||
| export PATH=$PATH:$(go env GOPATH)/bin | ||
| bazel --version | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| - name: Build with Bazel | ||
| run: | | ||
| bazel build //tetris:tetris | ||
| echo "binary_path=$(bazel info bazel-bin)/tetris/tetris" >> $GITHUB_ENV | ||
| - name: Upload Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: tetris-artifact | ||
| path: | | ||
| ${{ env.binary_path }} | ||
| ${{ env.binary_path }}.runfiles/ | ||