Add lint and build actions #1

Manually merged
MichaelBradley merged 30 commits from actions into main 2025-02-23 06:10:41 -05:00
Showing only changes of commit 5ab5aa0301 - Show all commits

View file

@ -17,32 +17,29 @@ jobs:
- name: Check Rust formatting
run: cargo fmt --all -- --check
# clippy:
# name: Clippy
# runs-on: docker
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up Rust
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: stable
# components: clippy
# - name: Run Clippy
# run: cargo clippy -- -D warnings
clippy:
name: Clippy
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run Clippy
run: cargo clippy -- -D warnings
# check:
# name: Check
# runs-on: docker
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up Rust
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: stable
# - name: Check for Rust compilation errors
# run: cargo check
check:
name: Check
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Check for Rust compilation errors
run: cargo check
build:
name: Build
@ -61,15 +58,13 @@ jobs:
- name: Build Rust code
run: maturin develop
# test-rust:
# name: Test Rust
# runs-on: docker
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up Rust
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: stable
# - name: Run Rust tests
# run: cargo test
test-rust:
name: Test Rust
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Run Rust tests
run: cargo test