Skip to content

Commit

Permalink
fix: set constant bazel version to avoid bzlmod before switched up
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenandpork committed Dec 12, 2024
1 parent 5473298 commit 728564b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
9 changes: 6 additions & 3 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,19 @@ jobs:
# needs to be an absolute path, not a variable; I've made it match TEST_TMPDIR above
path: /tmp/bazel
key: _bazel_runner
- run: bazel build //...
- run: bazel test //... --test_output=errors --test_summary=detailed
- run: bazel build //... --noenable_bzlmod
- run: bazel test //... --noenable_bzlmod --test_output=errors --test_summary=detailed
- name: Build examples to ensure functionality
run: |
for d in $(find examples -name WORKSPACE -exec dirname {} \; ); do
echo "::group::example: ${d}"
case ${RUNNER_ENVIRONMENT}:${d} in
github-hosted:examples/huggingface_transformer_question_answering) echo "TOO big: skip in github-hosted" ;;
github-hosted:examples/huggingface_transformer_fillmask) echo "TOO big: skip in github-hosted" ;;
*) (cd ${d} && bazel build //... && bazel test //... --test_output=errors --test_summary=detailed --action_env=TRANSFORMERS_CACHE && bazel clean );;
*) (cd ${d} && \
bazel build //... --noenable_bzlmod --action_env=TRANSFORMERS_CACHE && \
bazel test //... --noenable_bzlmod --action_env=TRANSFORMERS_CACHE --test_output=errors --test_summary=detailed && \
bazel clean );;
esac
echo "::endgroup::"
done
1 change: 1 addition & 0 deletions examples/demo_rules_python/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
1 change: 1 addition & 0 deletions examples/demo_vendored_requirements/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
1 change: 1 addition & 0 deletions examples/huggingface_transformer_distilgpt2/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
1 change: 1 addition & 0 deletions examples/huggingface_transformer_fillmask/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.4.1

0 comments on commit 728564b

Please sign in to comment.