Skip to content

Commit

Permalink
Remove actions-rs GitHub Actions
Browse files Browse the repository at this point in the history
GitHub is deprecating the node 12 runtime for GitHub Actions.
actions-rs/toolchain and actions-rs/clippy are unmaintained and currently
emit warnings due to the deprecation.

Replace these with actions from https://github.com/artichoke/setup-rust.

Audit and rustdoc workflows are not updated since these are managed by
Terraform in artichoke/project-infrastructure.

Skip miri workflow, blocked on artichoke/setup-rust#6.
  • Loading branch information
lopopolo committed Oct 22, 2022
1 parent 8be76cd commit 5907e60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/build-and-test@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Compile
run: cargo build --verbose
Expand Down
33 changes: 13 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/build-and-test@v1
with:
toolchain: stable
profile: minimal

- name: Compile
run: cargo build --verbose
Expand Down Expand Up @@ -72,10 +71,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/build-and-test@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.target }}

- name: Install 32-bit platform support
Expand Down Expand Up @@ -109,11 +107,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/build-and-test@v1
with:
toolchain: "1.56.0"
profile: minimal
override: true

- name: Compile
run: cargo build --verbose
Expand Down Expand Up @@ -149,13 +145,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install nightly Rust toolchain
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: artichoke/setup-rust/build-and-test@v1
with:
toolchain: nightly
profile: minimal
target: ${{ matrix.target }}
override: true

- name: Test with leak sanitizer and all features
run: cargo test --all-features --target ${{ matrix.target }}
Expand All @@ -173,21 +167,20 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: artichoke/setup-rust/lint-and-format@v1
with:
toolchain: nightly

- name: Install Rust toolchain
uses: artichoke/setup-rust/lint-and-format@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy

- name: Check formatting
run: cargo fmt -- --check --color=auto
run: cargo +nightly fmt --check

- name: Lint with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets
run: cargo clippy --workspace --all-features --all-targets

ruby:
name: Lint and format Ruby
Expand Down

0 comments on commit 5907e60

Please sign in to comment.