Skip to content

Commit

Permalink
ci: pin bazel version to .bazelversion for build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Dec 14, 2024
1 parent 205440d commit 972d9f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
# the combinations.

# Use Bazel with version specified in .bazelversion
- run: echo "USE_BAZEL_VERSION=$(cat .bazelversion)" >> $GITHUB_ENV
if: ${{ !startsWith(matrix.cases.os, 'windows') }}
- run: echo "USE_BAZEL_VERSION=$(cat .bazelversion)" >> $env:GITHUB_ENV
if: ${{ startsWith(matrix.cases.os, 'windows') }}

# out of @examples repo build requires WORKSPACE-based external dependency system
- run: bazelisk build --jobs=1 --noenable_bzlmod @rules_cuda_examples//basic:all
- run: bazelisk build --jobs=1 --noenable_bzlmod @rules_cuda_examples//rdc:all
Expand Down

0 comments on commit 972d9f1

Please sign in to comment.