Use functioning Rust toolchain setup action
This commit is contained in:
parent
f9705ada57
commit
5ab5aa0301
1 changed files with 32 additions and 37 deletions
|
@ -17,32 +17,29 @@ jobs:
|
||||||
- name: Check Rust formatting
|
- name: Check Rust formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
# clippy:
|
clippy:
|
||||||
# name: Clippy
|
name: Clippy
|
||||||
# runs-on: docker
|
runs-on: docker
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Set up Rust
|
- name: Set up Rust
|
||||||
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
# with:
|
with:
|
||||||
# toolchain: stable
|
components: clippy
|
||||||
# components: clippy
|
- name: Run Clippy
|
||||||
# - name: Run Clippy
|
run: cargo clippy -- -D warnings
|
||||||
# run: cargo clippy -- -D warnings
|
|
||||||
|
|
||||||
# check:
|
check:
|
||||||
# name: Check
|
name: Check
|
||||||
# runs-on: docker
|
runs-on: docker
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Set up Rust
|
- name: Set up Rust
|
||||||
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
# with:
|
- name: Check for Rust compilation errors
|
||||||
# toolchain: stable
|
run: cargo check
|
||||||
# - name: Check for Rust compilation errors
|
|
||||||
# run: cargo check
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -61,15 +58,13 @@ jobs:
|
||||||
- name: Build Rust code
|
- name: Build Rust code
|
||||||
run: maturin develop
|
run: maturin develop
|
||||||
|
|
||||||
# test-rust:
|
test-rust:
|
||||||
# name: Test Rust
|
name: Test Rust
|
||||||
# runs-on: docker
|
runs-on: docker
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Set up Rust
|
- name: Set up Rust
|
||||||
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
# with:
|
- name: Run Rust tests
|
||||||
# toolchain: stable
|
run: cargo test
|
||||||
# - name: Run Rust tests
|
|
||||||
# run: cargo test
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue