Skip to content

ci(github/workflows): build & release pipelines created #2

ci(github/workflows): build & release pipelines created

ci(github/workflows): build & release pipelines created #2

Workflow file for this run

name: Bazel Build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 4, Col: 3): Unexpected value 'tag', (Line: 5, Col: 5): A sequence was not expected, (Line: 12, Col: 20): Unexpected value 'true', (Line: 19, Col: 9): Unexpected value 'run'
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/