From d8969522c3015e6cd3b5b525baf0ed898dc93ac9 Mon Sep 17 00:00:00 2001 From: Talal Ashraf Date: Wed, 17 Jul 2024 14:32:37 -0400 Subject: [PATCH] chore(infra): log crates.toml to figure out issues with caching and use blacksmith rust-cache 3.0.1 (#516) --- .github/workflows/basic.yaml | 21 ++++++++++++++++++--- .github/workflows/codecov.yaml | 7 ++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/basic.yaml b/.github/workflows/basic.yaml index 68c9e24f8..2c8b3e572 100644 --- a/.github/workflows/basic.yaml +++ b/.github/workflows/basic.yaml @@ -29,10 +29,15 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache build artifacts - uses: useblacksmith/rust-cache@v3 + uses: useblacksmith/rust-cache@v3.0.1 + id: cache with: shared-key: "cache-tests" + - name: Log crates.toml + if: steps.cache.outputs.cache-hit == 'true' + run: cat /home/runner/.cargo/.crates.toml + - name: Run tests uses: actions-rs/cargo@v1 with: @@ -57,10 +62,15 @@ jobs: override: true - name: Cache build artifacts - uses: useblacksmith/rust-cache@v3 + id: cache + uses: useblacksmith/rust-cache@v3.0.1 with: shared-key: "cache-cosmwasm-compilation" + - name: Log crates.toml + if: steps.cache.outputs.cache-hit == 'true' + run: cat /home/runner/.cargo/.crates.toml + - name: Build wasm release run: | for C in ./contracts/*/ @@ -98,10 +108,15 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache build artifacts - uses: useblacksmith/rust-cache@v3 + uses: useblacksmith/rust-cache@v3.0.1 + id: cache with: shared-key: "cache-lints" + - name: Log crates.toml + if: steps.cache.outputs.cache-hit == 'true' + run: cat /home/runner/.cargo/.crates.toml + - name: Install cargo-sort uses: baptiste0928/cargo-install@v2 with: diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index e458bd9a1..51a41df6d 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -31,10 +31,15 @@ jobs: run: sudo apt-get install libclang-dev - name: Cache build artifacts - uses: useblacksmith/rust-cache@v3 + uses: useblacksmith/rust-cache@v3.0.1 + id: cache with: shared-key: "cache-codecov" + - name: Log crates.toml + if: steps.cache.outputs.cache-hit == 'true' + run: cat /home/runner/.cargo/.crates.toml + - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov