-
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.
Merge pull request #44 from rustaceanrob/ci-09-06
ci: add CI job
- Loading branch information
Showing
6 changed files
with
58 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build & Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, windows-latest] | ||
toolchain: [1.63.0, stable] | ||
include: | ||
- toolchain: 1.63.0 | ||
msrv: true | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update Toolchain | ||
run: | | ||
rustup default ${{ matrix.toolchain }} | ||
rustup component add --toolchain ${{ matrix.toolchain }} rustfmt | ||
rustup component add --toolchain ${{ matrix.toolchain }} clippy | ||
rustup update ${{ matrix.toolchain }} | ||
- name: Pin dependencies | ||
if: matrix.msrv | ||
run: cargo update -p allocator-api2 --precise "0.2.9" --verbose | ||
- name: Lint all targets | ||
run: cargo clippy --all-targets | ||
- name: Format | ||
run: cargo fmt -- --check | ||
- name: Build with defeault features | ||
run: cargo build --verbose | ||
- name: Check release build on Rust ${{ matrix.toolchain }} | ||
run: cargo check --release --verbose --color always | ||
- name: Test | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ debug/ | |
target/ | ||
Cargo.lock | ||
.DS_Store | ||
.vscode/ | ||
|
||
# database | ||
data/ | ||
|
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
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
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
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