Skip to content

Commit

Permalink
Cleanup github runner at start of all_checks_osmosis (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll authored Aug 26, 2024
1 parent 761805c commit 06d23d1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/all_checks_osmosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cleanup runner
run: sudo rm -rf /usr/local/share/boost && sudo rm -rf /usr/share/dotnet && sudo rm -rf /usr/local/lib/android && sudo rm -rf /opt/ghc && sudo rm -rf /opt/hostedtoolcache/CodeQL && sudo docker image prune --all --force
- name: Restore dependencies
id: restore-cache
uses: actions/cache/restore@v4
Expand All @@ -34,9 +36,9 @@ jobs:
~/.cargo
~/go
~/target
key: ${{ runner.os }}-cargo-osmosis-${{github.sha}}
restore-keys: ${{ runner.os }}-cargo-osmosis
- name: Update PATH and RUSTC_WRAPPER
key: ${{ runner.os }}-cache-osmosis-${{github.sha}}
restore-keys: ${{ runner.os }}-cache-osmosis
- name: Update PATH
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install cachepot
run: test -e $HOME/.cargo/bin/cachepot && echo "cachepot found -- skipping install" || cargo install --git https://github.com/paritytech/cachepot
Expand Down Expand Up @@ -73,13 +75,13 @@ jobs:
PROPTEST_CASES: 10
working-directory: smart-contracts/osmosis/contracts/cl-vault
- name: Store dependencies
if: inputs.store_deps
if: ${{ (inputs.store_deps) && (steps.restore-cache.outputs.cache-hit == false) }}$
uses: actions/cache/save@v4
with:
path: |
~/.cache/cachepot
~/.cargo
~/go
~/target
key: ${{ runner.os }}-cargo-osmosis-${{github.sha}}
key: ${{ runner.os }}-cache-osmosis-${{github.sha}}

0 comments on commit 06d23d1

Please sign in to comment.