ci: remove legacy rust version #158
This file contains 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
on: [push, pull_request] | |
name: ci | |
jobs: | |
build-test: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable # STABLE | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Generate cache key | |
run: echo "${{ matrix.rust }}" | |
- name: Set default toolchain | |
run: rustup default ${{ matrix.rust }} | |
- name: Set profile | |
run: rustup set profile minimal | |
- name: Add clippy | |
run: rustup component add clippy | |
- name: Update toolchain | |
run: rustup update | |
- name: Build | |
run: cargo build | |
- name: Clippy | |
run: cargo clippy | |
fmt: | |
name: Rust fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set default toolchain | |
run: rustup default stable | |
- name: Set profile | |
run: rustup set profile minimal | |
- name: Add clippy | |
run: rustup component add rustfmt | |
- name: Update toolchain | |
run: rustup update | |
- name: Check fmt | |
run: cargo fmt --all -- --check |