Skip to content

Shared image

Shared image #92

Workflow file for this run

name: Rust CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
runson: [ ubuntu-latest, macos-latest, windows-latest ]
rust: [ stable, nightly ]
runs-on: ${{ matrix.runson }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: build
run: |
cargo build --verbose
cargo test --verbose
cargo doc --verbose
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Run rustfmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check