Skip to content

Commit

Permalink
Remove CI dependency on node16
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaeroxe committed Apr 16, 2024
1 parent 7c8a898 commit d0f0ce4
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt

- name: Build | Format
Expand All @@ -32,21 +30,16 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: clippy

- name: Build | Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --all-features -- -Dwarnings
run: cargo clippy --workspace --all-targets --all-features -- -Dwarnings

# Ensure that the project could be successfully compiled
cargo_check:
Expand All @@ -57,14 +50,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}

- name: Build | Check
Expand All @@ -83,14 +74,12 @@ jobs:
rust: ['1.70', stable, nightly]
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true

# Run the ignored tests that expect the above setup
- name: Build | Test
Expand All @@ -99,4 +88,4 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v1

0 comments on commit d0f0ce4

Please sign in to comment.