Skip to content

Commit

Permalink
cache on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Jan 6, 2025
1 parent a45646a commit 493e8ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

# fail fast if types doesn't compile, everything else will fail.
- name: types
Expand All @@ -71,6 +72,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- name: wallet
if: always()
Expand Down Expand Up @@ -98,6 +100,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

# Check test suite meta tests
- name: smoke-tests # NOTE: needs working DIEM_FORGE_NODE_BIN_PATH
Expand All @@ -118,6 +121,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- uses: actions/[email protected]
with:
Expand All @@ -144,6 +148,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- uses: actions/[email protected]
with:
Expand All @@ -169,6 +174,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -208,6 +214,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -260,6 +267,12 @@ jobs:
- name: setup env
uses: ./.github/actions/build_env

- uses: Swatinem/[email protected]
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- uses: actions/[email protected]
with:
name: framework-build
Expand All @@ -282,6 +295,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- name: storage
working-directory: ./tools/storage
Expand All @@ -301,6 +315,8 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- name: twin
working-directory: ./testsuites/twin
run: cargo test --no-fail-fast
1 change: 1 addition & 0 deletions .github/workflows/cleanliness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
shared-key: "libra-framework"
cache-all-crates: true
cache-on-failure: true

- name: format
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 493e8ac

Please sign in to comment.