Skip to content

Commit

Permalink
Test bzlmod on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aherrmann committed Jan 5, 2022
1 parent 2469648 commit 6d5e537
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
bzlmod: [workspace, module]
defaults:
run:
shell: bash
Expand All @@ -27,6 +28,15 @@ jobs:
machine api.github.com
password ${{ secrets.GITHUB_TOKEN }}
EOF
if [[ ${{ matrix.bzlmod }} == module ]]; then
# Test with bzlmod enabled.
# Requires https://github.com/bazelbuild/bazel/commit/302971e1b3d803069ac949c0085c0d2a3916c8ab,
# see https://github.com/bazelbuild/bazel-central-registry/pull/47#issuecomment-998883652
echo USE_BAZEL_VERSION=302971e1b3d803069ac949c0085c0d2a3916c8ab >.bazeliskrc
cat >>.bazelrc.local <<-EOF
build --experimental_enable_bzlmod
EOF
fi
- name: Build & Test
run: |
if [[ ${{ runner.os }} == Windows ]]; then
Expand Down

0 comments on commit 6d5e537

Please sign in to comment.