-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,18 @@ jobs: | |
if: matrix.bzlmodEnabled | ||
run: echo "bzlmod_flag=--enable_bzlmod" >> $GITHUB_OUTPUT | ||
|
||
- name: Set credential helpers flag | ||
# Add --config needs_credential_helpers to add additional credential helpers | ||
# to fetch from registries with HTTP headers set by credential helpers. | ||
id: set_credential_helper_flag | ||
if: matrix.bazelversion == '6.4.0' | ||
run: echo "credential_helper_flag=--config=needs_credential_helpers" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup credential helpers | ||
uses: imjasonh/[email protected] | ||
with: | ||
version: "v0.19.1" | ||
|
||
- name: Configure Bazel version | ||
working-directory: ${{ matrix.folder }} | ||
run: echo "${{ matrix.bazelversion }}" > .bazelversion | ||
|
@@ -146,4 +158,10 @@ jobs: | |
env: | ||
# Bazelisk will download bazel to here, ensure it is cached between runs. | ||
XDG_CACHE_HOME: ~/.cache/bazel-repo | ||
run: bazel --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc --bazelrc=.bazelrc test ${{ steps.set_bzlmod_flag.outputs.bzlmod_flag }} //... | ||
run: | | ||
bazel \ | ||
--bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc \ | ||
--bazelrc=.bazelrc \ | ||
test //... \ | ||
${{ steps.set_bzlmod_flag.outputs.bzlmod_flag }} \ | ||
${{ steps.set_credential_helper_flag.outputs.credential_helper_flag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters