Skip to content

Commit

Permalink
Update Bazel to v7.0.2. (#223)
Browse files Browse the repository at this point in the history
Disable Bzlmod until we migrate to MODULE.bazel.

Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Feb 14, 2024
1 parent 7906f6b commit bf50796
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Disable Bzlmod
common --noenable_bzlmod

# Force Bazel to use --target=wasm32-wasi
build --platforms=@rules_rust//rust/platform:wasi
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.1
7.0.2
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
key: ${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.Bazel.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }}

- name: Build (wasm32-unknown-unknown)
run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasm //...
run: bazelisk --noworkspace_rc build --noenable_bzlmod --platforms=@rules_rust//rust/platform:wasm //...

- name: Build (wasm32-wasi)
run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasi //...
run: bazelisk --noworkspace_rc build --noenable_bzlmod --platforms=@rules_rust//rust/platform:wasi //...

- name: Format (buildifier)
run: |
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Format (rules_rust)
run: |
bazelisk --noworkspace_rc run //bazel/cargo:crates_vendor
bazelisk --noworkspace_rc run --noenable_bzlmod //bazel/cargo:crates_vendor
git diff --exit-code
stable:
Expand Down

0 comments on commit bf50796

Please sign in to comment.