ci: migrate to dtolnay/rust-toolchain
#12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| verify: | |
| name: Verify solutions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v3 | |
| - name: Install rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Install prerequisites | |
| run: | | |
| cargo install --force --path . | |
| which rustlings | |
| rustlings --version | |
| - name: Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Verify solutions | |
| run: | | |
| rustlings verify |