Skip to content

Commit

Permalink
chore(infra): log crates.toml to figure out issues with caching and u…
Browse files Browse the repository at this point in the history
…se blacksmith rust-cache 3.0.1 (#516)
  • Loading branch information
talalashraf authored Jul 17, 2024
1 parent 7393fa4 commit d896952
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache build artifacts
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/[email protected]
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:
Expand All @@ -57,10 +62,15 @@ jobs:
override: true

- name: Cache build artifacts
uses: useblacksmith/rust-cache@v3
id: cache
uses: useblacksmith/[email protected]
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/*/
Expand Down Expand Up @@ -98,10 +108,15 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache build artifacts
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/[email protected]
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:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
run: sudo apt-get install libclang-dev

- name: Cache build artifacts
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/[email protected]
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

Expand Down

0 comments on commit d896952

Please sign in to comment.