diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-05-15 15:07:46 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-05-15 15:25:58 +0200 |
| commit | 2dca5431c4ac475b066f7f07a8cfcbd7ea284378 (patch) | |
| tree | 79f74aa9eab10dda798d8f7a96e3c5faa415e378 /src/tools/rust-analyzer | |
| parent | 98d768bf757ae3d71d8d47a8b082b8d06cb5b611 (diff) | |
| download | rust-2dca5431c4ac475b066f7f07a8cfcbd7ea284378.tar.gz rust-2dca5431c4ac475b066f7f07a8cfcbd7ea284378.zip | |
Use actions/cache again in metrics CI
Diffstat (limited to 'src/tools/rust-analyzer')
| -rw-r--r-- | src/tools/rust-analyzer/.github/workflows/metrics.yaml | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/tools/rust-analyzer/.github/workflows/metrics.yaml b/src/tools/rust-analyzer/.github/workflows/metrics.yaml index aa776c035e8..a4146d60218 100644 --- a/src/tools/rust-analyzer/.github/workflows/metrics.yaml +++ b/src/tools/rust-analyzer/.github/workflows/metrics.yaml @@ -25,20 +25,24 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Restore cargo cache - uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 + - name: Cache cargo + uses: actions/cache@v4 with: - shared-key: ${{ runner.os }}-cargo-metrics-${{ github.sha }} - cache-targets: "false" + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + key: ${{ runner.os }}-cargo-${{ github.sha }} - name: Collect build metrics run: cargo xtask metrics build - name: Cache target - uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 + uses: actions/cache@v4 with: - shared-key: ${{ runner.os }}-cargo-metrics-${{ github.sha }} - cache-targets: "true" + path: target/ + key: ${{ runner.os }}-target-${{ github.sha }} - name: Upload build metrics uses: actions/upload-artifact@v4 @@ -64,11 +68,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Restore cargo cache - uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 + - name: Restore target cache + uses: actions/cache@v4 with: - shared-key: ${{ runner.os }}-cargo-metrics-${{ github.sha }} - cache-targets: "true" + path: target/ + key: ${{ runner.os }}-target-${{ github.sha }} - name: Collect metrics run: cargo xtask metrics "${{ matrix.names }}" |
