@@ -32,13 +32,32 @@ runs:
3232 docker-images : true
3333 swap-storage : ${{ inputs.build-type != 'pre-commit' }}
3434
35+ - name : Free disk space (macOS)
36+ if : inputs.free-disk-space == 'true' && runner.os == 'macOS'
37+ shell : bash
38+ run : |
39+ echo "=== Disk usage before cleanup ==="
40+ df -h /
41+ sudo rm -rf /Library/Developer/CoreSimulator || true
42+ sudo rm -rf ~/Library/Android || true
43+ sudo rm -rf /usr/local/share/dotnet || true
44+ sudo rm -rf /usr/local/share/powershell || true
45+ sudo rm -rf /usr/local/.ghcup || true
46+ echo "=== Disk usage after cleanup ==="
47+ df -h /
48+
3549 - name : Free disk space (Windows)
3650 if : inputs.free-disk-space == 'true' && runner.os == 'Windows'
3751 shell : bash
3852 env :
3953 BUILD_TYPE : ${{ inputs.build-type }}
4054 run : |
4155 rm -rf "/c/Program Files/dotnet"
56+ rm -rf "/c/Android"
57+ rm -rf /c/hostedtoolcache/windows/Java_*
58+ rm -rf "/c/hostedtoolcache/windows/CodeQL"
59+ rm -rf "/c/Miniconda"
60+ rm -rf "/c/Strawberry"
4261 if [ "$BUILD_TYPE" != "pre-commit" ]; then
4362 rm -rf "/c/Program Files (x86)/Microsoft Visual Studio/2019"
4463 fi
82101 - name : Install cargo-nextest
83102 if : inputs.build-type != 'pre-commit'
84103 # https://github.com/taiki-e/install-action # v2.53.2
85- uses : taiki-e/install-action@59679e24ffb0dbbbc136684eda7fcd21fe9eddea # v2.63.0
104+ uses : taiki-e/install-action@f176c07a0a40cbfdd08ee9aa8bf1655701d11e69 # v2.67.25
86105 with :
87106 tool : nextest
88107
@@ -128,7 +147,7 @@ runs:
128147 # > Python
129148 - name : Set up Python environment
130149 # https://github.com/actions/setup-python
131- uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1 .0
150+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2 .0
132151 with :
133152 python-version : ${{ inputs.python-version }}
134153
@@ -150,7 +169,7 @@ runs:
150169 - name : Cache Python site-packages
151170 id : cached-site-packages
152171 # https://github.com/actions/cache
153- uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
172+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
154173 with :
155174 path : ~/.local/lib/python${{ inputs.python-version }}/site-packages
156175 key : ${{ runner.os }}-${{ inputs.python-version }}-site-packages
@@ -170,7 +189,7 @@ runs:
170189
171190 - name : Install uv
172191 # https://github.com/astral-sh/setup-uv
173- uses : astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
192+ uses : astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
174193 with :
175194 version : ${{ env.UV_VERSION }}
176195
@@ -185,7 +204,7 @@ runs:
185204 if : runner.os != 'macOS'
186205 id : cached-uv
187206 # https://github.com/actions/cache
188- uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
207+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
189208 with :
190209 path : ${{ env.UV_CACHE_DIR }}
191210 key : ${{ runner.os }}-${{ env.PYTHON_VERSION }}-uv-${{ hashFiles('**/uv.lock') }}
@@ -198,7 +217,7 @@ runs:
198217 if : runner.os != 'macOS'
199218 id : cached-pre-commit
200219 # https://github.com/actions/cache
201- uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
220+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
202221 with :
203222 path : ~/.cache/pre-commit
204223 key : ${{ runner.os }}-${{ env.PYTHON_VERSION }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
0 commit comments