on:
push:
# Ignore bors branches, since they are covered by `clippy_bors.yml`
- branches-ignore: [auto, try]
+ branches-ignore:
+ - auto
+ - try
# Don't run Clippy tests, when only textfiles were modified
paths-ignore:
- 'COPYRIGHT'
run: cargo update
- name: Cache cargo dir
- uses: actions/cache@v1
+ uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
# Cleanup
- name: Run cargo-cache --autoclean
run: |
- cargo +nightly install cargo-cache --debug
- find ~/.cargo/bin ! -type d -exec strip {} \;
- cargo cache --autoclean
+ cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
+ cargo cache