Skip to content

Commit

Permalink
ci: move away from deprecated actions-rs/toolchain (#193)
Browse files Browse the repository at this point in the history
Thanks for the suggestion @tl-eirik-albrigtsen

              this is deprecated;
```suggestion
      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable

```

_Originally posted by @tl-eirik-albrigtsen in #192 (comment)
  • Loading branch information
eopb authored Oct 17, 2024
1 parent b8069e2 commit d95ec5a
Showing 1 changed file with 10 additions and 48 deletions.
58 changes: 10 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable
- uses: actions-rs/cargo@v1
with:
command: test
Expand All @@ -30,11 +26,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: test
Expand All @@ -46,11 +38,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: test
Expand All @@ -62,11 +50,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
# Old opentelemetry features group to improve performance
Expand All @@ -80,12 +64,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
uses: dtolnay/rust-toolchain@stable
- name: Check formatting
uses: actions-rs/cargo@v1
with:
Expand All @@ -99,12 +78,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: clippy
uses: dtolnay/rust-toolchain@stable
- name: Clippy check
uses: actions-rs/cargo@v1
with:
Expand All @@ -119,12 +93,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: clippy
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: test
Expand All @@ -146,11 +115,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
Expand All @@ -165,11 +130,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: actions-rs/cargo@v1
with:
command: publish
Expand Down

0 comments on commit d95ec5a

Please sign in to comment.