Skip to content

Commit

Permalink
[ci] remove gcloud hack
Browse files Browse the repository at this point in the history
The exact content of `PATH` now does not affect the cacheability of
bitstream builds, so this hack can be removed.

Signed-off-by: Gary Guo <[email protected]>
  • Loading branch information
nbdd0121 committed Jan 17, 2025
1 parent fc2454c commit dac498c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/actions/prepare-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,6 @@ runs:
- uses: google-github-actions/setup-gcloud@v2
if: github.event_name != 'pull_request'

# HACK: for pull request we don't really need gcloud (and it's ~0.5G to download), but not including
# it in the PATH cause environment variables to change and Verilator build to be uncached.
- name: Fake gcloud PATH
if: github.event_name == 'pull_request'
shell: bash
run: |
LATEST=$(curl -sSfL https://raw.githubusercontent.com/google-github-actions/setup-cloud-sdk/main/data/versions.json | jq -r .[-1])
GCLOUD_PATH="${{ runner.tool_cache }}/gcloud/$LATEST/x64/bin"
mkdir -p "$GCLOUD_PATH"
echo "$GCLOUD_PATH" >> "$GITHUB_PATH"
- name: Configure ~/.bazelrc
if: inputs.configure-bazel == 'true'
run: |
Expand Down

0 comments on commit dac498c

Please sign in to comment.