Fix nightly linux x86 build (#18029)

Peter Tripp created

Makes our nightly script for Linux x86 (broken) match the steps for Linux ARM (working).

Change summary

.github/workflows/release_nightly.yml | 6 ++++++
1 file changed, 6 insertions(+)

Detailed changes

.github/workflows/release_nightly.yml 🔗

@@ -113,6 +113,12 @@ jobs:
       - name: Add Rust to the PATH
         run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
 
+      - name: Install Linux dependencies
+        run: ./script/linux
+
+      - name: Limit target directory size
+        run: script/clear-target-dir-if-larger-than 100
+
       - name: Set release channel to nightly
         run: |
           set -euo pipefail