Skip to content

Commit

Permalink
CI: Replace deprecated/unmaintained actions-rs with simple run: s…
Browse files Browse the repository at this point in the history
…teps

The `actions-rs` containers haven't been maintained and updated for
years and don't need to: GitHub's actions environment already comes
fully loaded with a complete stable Rust installation with the standard
tools (clippy, rustfmt, rustdoc).  Simple `run:` commands relate
directly to what a developer can type in locally to "reproduce" the
CI environment while they might be following up on CI failures, and no
longer spam ancient Node 12 deprecation warnings.
  • Loading branch information
MarijnS95 committed Dec 12, 2024
1 parent 9aafd84 commit 6142a2c
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,28 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-targets
run: cargo build --workspace --all-targets
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-targets
run: cargo test --workspace --all-targets
lint:
name: Lint
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

0 comments on commit 6142a2c

Please sign in to comment.