fix for buildjet

This commit is contained in:
Matt Hill
2026-02-02 18:51:11 -07:00
parent 3685b7e57e
commit 5664456b77

View File

@@ -47,6 +47,12 @@ runs:
sudo rm -rf /usr/share/swift
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
# BuildJet runners lack /opt/hostedtoolcache, which actions/setup-python requires
- name: Ensure hostedtoolcache exists
if: inputs.setup-python == 'true'
shell: bash
run: sudo mkdir -p /opt/hostedtoolcache && sudo chown $USER:$USER /opt/hostedtoolcache
- name: Set up Python
if: inputs.setup-python == 'true'
uses: actions/setup-python@v5