ci: use dtolnay/rust-toolchain (#124)

* ci: don't cache `.cargo/`, `.rustup/`

* ci: use `dtolnay/rust-toolchain@master`
This commit is contained in:
hinto-janai 2024-05-05 10:22:05 -04:00 committed by GitHub
parent fb3d41ccbb
commit 10d327ca13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,10 +53,13 @@ jobs:
include:
- os: windows-latest
shell: msys2 {0}
rust: stable-x86_64-pc-windows-gnu
- os: macos-latest
shell: bash
rust: stable
- os: ubuntu-latest
shell: bash
rust: stable
defaults:
run:
@ -68,13 +71,16 @@ jobs:
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy
- name: Cache
uses: actions/cache@v3
with:
path: |
target
~/.cargo
~/.rustup
path: target
key: ${{ matrix.os }}
- name: Download monerod
@ -99,12 +105,6 @@ jobs:
update: true
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-boost msys2-runtime-devel git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
- name: Switch target (Windows)
if: matrix.os == 'windows-latest'
run: |
rustup toolchain install stable-x86_64-pc-windows-gnu -c clippy --no-self-update
rustup default stable-x86_64-pc-windows-gnu
- name: Documentation
run: cargo doc --workspace --all-features --no-deps