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