Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 18 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,27 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain manually
run: |
sudo apt update && sudo apt install rustc
rustup component add rustfmt clippy

- name: Add Rust to PATH
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Check formatting
run: cargo fmt --check

- name: Lint with Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

- name: Run tests with all features
run: cargo test --all-features --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading