mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-10 12:28:25 +00:00
Clean up environment variables after deleting Android SDK (#8099)
Without this, new versions of Bazel tools break on our runners. Assisted-by: Antigravity with Opus
This commit is contained in:
1 parent
a1305604f2
commit
3741e72c8a
1 file changed
+12
@@ -22,6 +22,18 @@ runs:
|
||||
# to save time.
|
||||
large-packages: false
|
||||
|
||||
# The image's Android environment variables still point into the SDK and
|
||||
# NDK deleted above, which confuses tools that look for them, such as
|
||||
# rules_android. `$GITHUB_ENV` can't unset variables, so set them to empty,
|
||||
# which rules_android treats as unset.
|
||||
- name: Clear Android environment variables
|
||||
shell: bash
|
||||
run: |
|
||||
for var in ANDROID_HOME ANDROID_SDK_ROOT ANDROID_NDK ANDROID_NDK_HOME \
|
||||
ANDROID_NDK_LATEST_HOME ANDROID_NDK_ROOT; do
|
||||
echo "$var=" >> "$GITHUB_ENV"
|
||||
done
|
||||
|
||||
# Select the LLVM release - by the cache key and the download.
|
||||
- name: Select LLVM release
|
||||
shell: bash
|
||||
|
||||
Reference in new issue
Block a user