Skip to content

Commit

Permalink
Cache all tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Oct 4, 2021
1 parent 8019118 commit 5a6a4f9
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,28 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use cache
uses: actions/cache@v2
with:
path: |
~/bin
key: ${{ runner.os }}-${{ matrix.rust }}
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v1
- run: echo "$HOME/bin" >> $GITHUB_PATH
- run: mkdir -p $HOME/bin
- run: ./scripts/install_sccache.sh $TARGET
- run: sh scripts/install_cross.sh
- run: source ~/.cargo/env || true
- run: ./scripts/install_mdbook.sh $TARGET
- name: Setup tools
if: steps.cache.outputs.cache-hit != 'true'
run: |
./scripts/install_sccache.sh $TARGET
sh scripts/install_cross.sh
source ~/.cargo/env || true
./scripts/install_mdbook.sh $TARGET
- name: Run tests
run: >
run: |
if [ ! -z $DISABLE_TESTS ]; then
return
elif [[ -z ${WASM+set} ]]; then
Expand Down

0 comments on commit 5a6a4f9

Please sign in to comment.