tweak RTO result #47
Workflow file for this run
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
name: Build and test the library | |
on: [push] | |
env: | |
RUST_BACKTRACE: full | |
jobs: | |
test: | |
name: "Build and test" | |
strategy: | |
matrix: # windows fails when installing the MPFR crate | |
os: [ macos-latest, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust compiler | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Build | |
run: cargo build --release | |
- name: Test | |
run: cargo test | |
linter: | |
name: "Linting" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust compiler | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Clippy | |
run: cargo clippy -- -D warnings | |
- name: Format | |
run: cargo fmt --all -- --check |