-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite CI and replace archived dependencies
- Loading branch information
Showing
3 changed files
with
72 additions
and
124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
RUST_BACKTRACE: full | ||
|
||
jobs: | ||
sanity: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: cargo fmt | ||
run: cargo fmt --all -- --check | ||
|
||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: cargo clippy | ||
run: cargo clippy --all-targets -- -Dwarnings | ||
- name: cargo doc | ||
run: cargo doc --all ${{ matrix.feature_flag }} | ||
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
rust: [stable, beta] | ||
feature_flag: [''] | ||
include: | ||
- os: ubuntu-latest | ||
feature_flag: --features=beta | ||
name: Test ${{ matrix.os }} ${{ matrix.rust }} ${{ matrix.feature_flag }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Rust stable | ||
uses: dtolnay/rust-toolchain | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- name: Build | ||
run: cargo build ${{ matrix.feature_flag }} | ||
- name: Test | ||
run: cargo test ${{ matrix.feature_flag }} |
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