|
44 | 44 | - uses: actions/checkout@v4
|
45 | 45 | - name: Setup Rust toolchain
|
46 | 46 | run: ./ci/install-rust.sh
|
| 47 | + |
| 48 | + # FIXME(ci): These `du` statements are temporary for debugging cache |
| 49 | + - name: Target size before restoring cache |
| 50 | + run: du -sh target | sort -k 2 || true |
| 51 | + - uses: Swatinem/rust-cache@v2 |
| 52 | + with: |
| 53 | + key: ${{ matrix.os }}-${{ matrix.toolchain }} |
| 54 | + - name: Target size after restoring cache |
| 55 | + run: du -sh target | sort -k 2 || true |
| 56 | + |
47 | 57 | - name: Execute build.sh
|
48 | 58 | run: ./ci/verify-build.sh
|
| 59 | + - name: Target size after job completion |
| 60 | + run: du -sh target | sort -k 2 |
49 | 61 |
|
50 | 62 | test_tier1:
|
51 | 63 | name: Test tier1
|
|
82 | 94 | - uses: actions/checkout@v4
|
83 | 95 | - name: Setup Rust toolchain
|
84 | 96 | run: ./ci/install-rust.sh
|
| 97 | + - uses: Swatinem/rust-cache@v2 |
| 98 | + with: |
| 99 | + key: ${{ matrix.target }} |
85 | 100 | - name: Run natively
|
86 | 101 | if: "!matrix.docker"
|
87 | 102 | run: ./ci/run.sh ${{ matrix.target }}
|
@@ -133,6 +148,9 @@ jobs:
|
133 | 148 | - uses: actions/checkout@v4
|
134 | 149 | - name: Setup Rust toolchain
|
135 | 150 | run: ./ci/install-rust.sh
|
| 151 | + - uses: Swatinem/rust-cache@v2 |
| 152 | + with: |
| 153 | + key: ${{ matrix.target }} |
136 | 154 | - name: Execute run-docker.sh
|
137 | 155 | run: ./ci/run-docker.sh ${{ matrix.target }}
|
138 | 156 |
|
|
0 commit comments