@@ -144,6 +144,25 @@ jobs:
144144 run : git pull origin "$GIT_REF"
145145 env :
146146 GIT_REF : ${{ github.ref }}
147+ - name : Delete browsers and drivers
148+ if : inputs.os == 'ubuntu' || inputs.os == 'macos'
149+ run : ./scripts/github-actions/delete-browsers-drivers.sh
150+ - name : Delete drivers (Windows)
151+ if : inputs.os == 'windows'
152+ shell : pwsh
153+ run : ./scripts/github-actions/delete-browsers-drivers.ps1
154+ - name : Free disk space
155+ if : inputs.os == 'ubuntu'
156+ shell : bash
157+ run : |
158+ . ./scripts/github-actions/disk-status.sh
159+ if [ "$AVAIL_GB" -lt 25 ]; then
160+ ./scripts/github-actions/free-disk-space.sh
161+ fi
162+ - name : Disk status before cache restore
163+ if : inputs.os != 'macos'
164+ shell : bash
165+ run : . ./scripts/github-actions/disk-status.sh
147166 - name : Restore cache
148167 if : inputs.cache-name != ''
149168 uses : actions/cache/restore@v5
@@ -170,6 +189,7 @@ jobs:
170189 node-version : ${{ inputs.node-version }}
171190 - name : Setup Bazel with caching
172191 continue-on-error : true
192+ timeout-minutes : 10
173193 uses : bazel-contrib/setup-bazel@0.19.0
174194 with :
175195 cache-save : ${{ inputs.cache-save }}
@@ -220,21 +240,6 @@ jobs:
220240 - name : Configure RubyGems credentials via OIDC
221241 if : inputs.gem-trusted-publishing
222242 uses : rubygems/configure-rubygems-credentials@main
223- - name : Delete browsers and drivers
224- if : inputs.os == 'ubuntu' || inputs.os == 'macos'
225- run : ./scripts/github-actions/delete-browsers-drivers.sh
226- - name : Delete drivers (Windows)
227- if : inputs.os == 'windows'
228- shell : pwsh
229- run : ./scripts/github-actions/delete-browsers-drivers.ps1
230- - name : Free disk space
231- if : inputs.os == 'ubuntu'
232- shell : bash
233- run : |
234- . ./scripts/github-actions/disk-status.sh
235- if [ "$AVAIL_GB" -lt 20 ]; then
236- ./scripts/github-actions/free-disk-space.sh
237- fi
238243 - name : Run Bazel
239244 id : run-bazel
240245 continue-on-error : true
0 commit comments