Skip to content

Commit

Permalink
deduplicate cache
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Jan 6, 2025
1 parent b1f4fa7 commit a45646a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/actions/build_env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ runs:
shell: bash
run: rustup component add rustfmt clippy

- name: also rust cache
uses: Swatinem/[email protected]
with:
shared-key: "libra"
cache-on-failure: "true"

# call own action for libra_cli
# known issue with needing to hard code the @version
# https://github.com/orgs/community/discussions/41927
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
shared-key: "libra-framework"
cache-all-crates: true

# fail fast if types doesnt compile, everything else will fail.
# fail fast if types doesn't compile, everything else will fail.
- name: types
working-directory: ./types
run: cargo test --no-fail-fast
Expand Down Expand Up @@ -258,17 +258,14 @@ jobs:
- uses: actions/checkout@v3

- name: setup env
# if: ${{runner.environment == 'self-hosted'}}
uses: ./.github/actions/build_env

- uses: actions/[email protected]
# if: ${{runner.environment == 'self-hosted'}}
with:
name: framework-build
path: framework/
- name: rescue
if: always()
# if: ${{runner.environment == 'self-hosted'}}
working-directory: ./tools/rescue
run: RUST_MIN_STACK=104857600 cargo test --no-fail-fast -- --test-threads=1
storage:
Expand All @@ -277,16 +274,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: setup env
uses: ./.github/actions/build_env

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

- name: storage
working-directory: ./tools/storage
# TODO: not testing the V6 file parsing
run: cargo test --no-fail-fast

twin-testsuite:
Expand All @@ -295,6 +293,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: setup env
uses: ./.github/actions/build_env

Expand Down

0 comments on commit a45646a

Please sign in to comment.