Skip to content

Commit

Permalink
ci: add workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
  • Loading branch information
explodingcamera committed Dec 4, 2023
1 parent 63591a4 commit d41e719
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Rust CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test-std:
name: Test with default features on stable Rust
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install stable Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Build (stable)
run: cargo +stable build --verbose

- name: Run tests (stable)
run: cargo +stable test --verbose

test-no-std:
name: Test without default features on nightly Rust
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install nightly Rust toolchain
run: |
rustup toolchain install nightly
rustup default nightly
- name: Build (nightly, no default features)
run: cargo +nightly build --verbose --no-default-features

- name: Run tests (nightly, no default features)
run: cargo +nightly test --verbose --no-default-features

0 comments on commit d41e719

Please sign in to comment.