-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b231066
commit d1dbda9
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Stable | ||
run: cargo test | ||
- name: Oldstable | ||
run: | | ||
oldstable=$(cat Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/') | ||
rustup toolchain install --profile minimal $oldstable | ||
rustup default $oldstable | ||
cargo test | ||
- name: Minimal | ||
run: | | ||
rustup toolchain install --profile minimal nightly -c rust-src | ||
make small | ||
- name: Clippy | ||
run: | | ||
rustup component add clippy | ||
cargo clippy --all-targets | ||
- name: Rustfmt | ||
run: | | ||
rustup toolchain install nightly -c rustfmt | ||
cargo +nightly fmt -- --check |