diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1e6c11db95a5..2f891602e607 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,36 +42,18 @@ jobs: steps: - uses: actions/checkout@v4 - name: Print dir sizes before toolchain - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true + run: ./ci/test-script.sh - name: Setup Rust toolchain run: ./ci/install-rust.sh - uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }}-${{ matrix.toolchain }} - name: Print dir sizes before - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true - du -sh ~/.rustup/* - ls ~/.rustup/target -h || true - find target -maxdepth 3 | sort + run: ./ci/test-script.sh - name: Execute build.sh run: ./ci/verify-build.sh - name: Print dir sizes after - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true - du -sh ~/.rustup/* - ls ~/.rustup/target -h || true - find target -maxdepth 3 | sort + run: ./ci/test-script.sh test_tier1: name: Test tier1 @@ -112,14 +94,7 @@ jobs: with: key: ${{ matrix.target }} - name: Print dir sizes before - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true - du -sh ~/.rustup/* - ls ~/.rustup/target -h || true - find target -maxdepth 3 | sort + run: ./ci/test-script.sh - name: Run natively if: "!matrix.docker" run: ./ci/run.sh ${{ matrix.target }} @@ -127,14 +102,7 @@ jobs: if: "matrix.docker" run: ./ci/run-docker.sh ${{ matrix.target }} - name: Print dir sizes after - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true - du -sh ~/.rustup/* - ls ~/.rustup/target -h || true - find target -maxdepth 3 | sort + run: ./ci/test-script.sh test_tier2: name: Test tier2 @@ -184,25 +152,10 @@ jobs: with: key: ${{ matrix.target }} - name: Print dir sizes before - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true - du -sh ~/.rustup/* - ls ~/.rustup/target -h || true - find target -maxdepth 3 | sort - name: Execute run-docker.sh run: ./ci/run-docker.sh ${{ matrix.target }} - name: Print dir sizes after - run: | - set -x - du -sh ~/.cargo - du -sh ~/.rustup - du -sh target || true - du -sh ~/.rustup/* - ls ~/.rustup/target -h || true - find target -maxdepth 3 | sort + run: ./ci/test-script.sh test_tier2_vm: name: Test tier2 VM diff --git a/ci/test-script.sh b/ci/test-script.sh new file mode 100755 index 000000000000..4aed6bdae901 --- /dev/null +++ b/ci/test-script.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -x +du -sh ~/.cargo +du -sh ~/.cargo/* +du -sh ~/.rustup +du -sh ~/.rustup/* +du -sh target || true +du -sh target/* || true +find target -maxdepth 3 | sort