name: Build on: push: branches: [main] paths_ignore: '*.md' pull_request: jobs: build: runs-on: ubuntu-latest strategy: matrix: rust: - stable - beta - nightly continue-on-error: ${{ matrix.rust == 'nightly' }} steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.rust }} profile: minimal override: true components: rustfmt, clippy - name: Build run: cargo build -v - name: Test run: cargo test -v - name: Format check run: cargo fmt -v -- --check - name: Lint run: cargo clippy -- -D warnings