Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #5

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ on:
branches: [ "main" ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable]

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --examples --verbose
- name: Run tests
run: cargo test --examples --verbose
- name: Run check
run: cargo check --examples --verbose

check:
name: Check
runs-on: ${{ matrix.os }}
Expand All @@ -24,14 +40,14 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --examples
args: --examples

test:
name: Test Suite
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]
steps:
- uses: actions/checkout@v2
Expand All @@ -43,7 +59,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --examples
args: --examples

fmt:
name: Rustfmt
Expand Down Expand Up @@ -75,4 +91,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests --examples --all-targets --all-features -- -Dwarnings
args: --examples --all-targets --all-features -- -Dwarnings
Loading