Skip to content

Commit

Permalink
Use bazelisk in all GitHub workflows (#6638)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored May 23, 2024
1 parent 083ed3e commit c4b6097
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-windows-github-release-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bazelisk --output_user_root=D:/0 build --config=release-windows --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} //enterprise/server/cmd/executor:executor
$execution_root = bazel.exe --output_user_root=D:/0 info execution_root
$artifact_rel_path = bazel.exe --output_user_root=D:/0 cquery --config=release-windows --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} --output=files //enterprise/server/cmd/executor:executor
$execution_root = bazelisk --output_user_root=D:/0 info execution_root
$artifact_rel_path = bazelisk --output_user_root=D:/0 cquery --config=release-windows --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} --output=files //enterprise/server/cmd/executor:executor
$artifact_abs_path = "${execution_root}\${artifact_rel_path}"
Copy-Item -Path $artifact_abs_path -Destination executor-enterprise-windows-amd64-beta.exe
gh release upload ${{ inputs.version_tag }} executor-enterprise-windows-amd64-beta.exe --clobber
2 changes: 1 addition & 1 deletion .github/workflows/website-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
if [[ "$API_KEY" ]]; then
API_KEY_ARGS=("--remote_header=x-buildbuddy-api-key=$API_KEY")
fi
bazel build //website:website --config=ci "${API_KEY_ARGS[@]}"
bazelisk build //website:website --config=ci "${API_KEY_ARGS[@]}"
2 changes: 1 addition & 1 deletion .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Build Website
run: |
bazel build //website:website --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }}
bazelisk build //website:website --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }}
rm -rf website/build
mkdir -p website/build
cd website/build
Expand Down

0 comments on commit c4b6097

Please sign in to comment.