-
Notifications
You must be signed in to change notification settings - Fork 7
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
81432a8
commit 545603a
Showing
2 changed files
with
23 additions
and
18 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 |
---|---|---|
@@ -1,36 +1,40 @@ | ||
name: Build & Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
on: [push, pull_request] | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest] | ||
toolchain: [stable] | ||
include: | ||
rust: | ||
- toolchain: stable | ||
- toolchain: 1.63.0 | ||
msrv: true | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update Toolchain | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust.toolchain }} | ||
components: clippy, rustfmt | ||
- name: Pin deps for MSRV | ||
if: matrix.rust.toolchain == '1.63.0' | ||
run: | | ||
rustup default ${{ matrix.toolchain }} | ||
rustup component add --toolchain ${{ matrix.toolchain }} rustfmt | ||
rustup component add --toolchain ${{ matrix.toolchain }} clippy | ||
rustup update ${{ matrix.toolchain }} | ||
cargo update -p tokio --precise "1.37.0" | ||
- name: Lint all targets | ||
run: cargo clippy | ||
- name: Format | ||
run: cargo fmt -- --check | ||
- name: Build with defeault features | ||
run: cargo build --verbose | ||
- name: Check release build on Rust ${{ matrix.toolchain }} | ||
- name: Check release build on Rust ${{ matrix.rust.toolchain }} | ||
run: cargo check --release --verbose --color always | ||
- name: Test | ||
run: cargo test --verbose | ||
run: cargo test --verbose |
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