Merge pull request #79 from quietlychris/0.4 #242
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main, ci ] | |
| pull_request: | |
| branches: [ main ] | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | |
| name: build-${{ matrix.toolchain }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| toolchain: | |
| - 1.81.0 | |
| - stable | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| profile: minimal | |
| components: clippy | |
| - name: Fmt | |
| run: rustup component add rustfmt | |
| - name: Default CI | |
| run: cargo run -p ci | |
| - name: QUIC CI | |
| run: cargo run -p ci --features quic |