Skip to content

Commit

Permalink
Don't use cargo@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Dec 18, 2023
1 parent 6dddc71 commit 7747699
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,17 @@ jobs:
rustup component add rustfmt clippy
- name: Code format check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: cargo fmt --check
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Clippy All targets
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

Expand All @@ -82,30 +73,21 @@ jobs:
run: rustup show

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all-targets
run: cargo build --verbose --all-targets
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Install ROS
run: sudo apt install -y ros-base

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
run: cargo test --verbose
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

- name: Run doctests
uses: actions-rs/cargo@v1
with:
command: test
args: --doc
run: cargo test --doc
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

0 comments on commit 7747699

Please sign in to comment.