Skip to content

Commit

Permalink
ci: Run cargo directly, no actions-rs/cargo.
Browse files Browse the repository at this point in the history
`actions-rs` actions have been unmaintained for years and produce
warnings when used as they trigger deprecation notices about
functionality that GitHub will be removing.
  • Loading branch information
waywardmonkeys committed Jul 7, 2023
1 parent cf63413 commit 0de15bd
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ jobs:
components: rustfmt

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

test-stable:
runs-on: ${{ matrix.os }}
Expand All @@ -43,16 +40,10 @@ jobs:
- run: rustup target add thumbv7m-none-eabi

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets -- -D warnings
run: cargo clippy --all-features --all-targets -- -D warnings

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
run: cargo test --all-features

- name: Build with no default features
# Use no-std target to ensure we don't link to std.
Expand All @@ -79,17 +70,11 @@ jobs:
components: clippy

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets --target wasm32-unknown-unknown -- -D warnings
run: cargo clippy --all-features --all-targets --target wasm32-unknown-unknown -- -D warnings

# TODO: Find a way to make tests work. Until then the tests are merely compiled.
- name: cargo test compile
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-run --target wasm32-unknown-unknown
run: cargo test --all-features --no-run --target wasm32-unknown-unknown

test-nightly:
runs-on: ${{ matrix.os }}
Expand All @@ -106,10 +91,7 @@ jobs:
toolchain: "nightly"

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
run: cargo test --all-features

check-docs:
name: Docs
Expand All @@ -126,7 +108,4 @@ jobs:
toolchain: "stable"

- name: cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features --document-private-items
run: cargo doc --all-features --document-private-items

0 comments on commit 0de15bd

Please sign in to comment.