Skip to content

bump to v0.2.0

bump to v0.2.0 #538

Workflow file for this run

name: Rust
concurrency:
group: check-rust-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
cargo-check:
name: cargo check
runs-on: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev clang llvm-dev libclang-dev
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: cargo check
run: cargo check --workspace --all-features
cargo-test:
name: cargo test
runs-on: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev clang llvm-dev libclang-dev
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: cargo test
run: cargo test --workspace --all-features
cargo-fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev clang llvm-dev libclang-dev
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-fmt
run: rustup component add rustfmt
- name: cargo fmt
run: cargo fmt -- --check
cargo-doc:
name: cargo doc
runs-on: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev clang llvm-dev libclang-dev
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: cargo doc
run: cargo doc
cargo-clippy:
name: cargo clippy
runs-on: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev clang llvm-dev libclang-dev
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-clippy
run: rustup component add clippy
- name: cargo clippy
run: cargo clippy --workspace --all-features
cargo-fix:
name: cargo fix
runs-on: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev clang llvm-dev libclang-dev
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: cargo fix --workspace
run: |
# Run cargo fix on the project
cargo fix --workspace
# Check for local git changes
if ! git diff --exit-code; then
echo "There are local changes after running 'cargo fix --workspace' ❌"
exit 1
else
echo "No changes detected after running 'cargo fix --workspace' ✅"
fi