Skip to content

Commit 59e971d

Browse files
committed
switch to setup-rust-toolchain instead of dtolnay
1 parent fd0443a commit 59e971d

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ on:
1111
- "**/Cargo.toml"
1212
- "**/Cargo.lock"
1313
schedule:
14-
# Once week at midnight UTC
14+
# Once a week at midnight UTC
1515
- cron: "0 0 * * 0"
1616
workflow_dispatch:
1717

1818
jobs:
19-
sec:
19+
audit:
2020
name: Security audit
2121
runs-on: ubuntu-latest
2222
steps:

.github/workflows/cd.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515

1616
steps:
17+
- name: Checkout
1718
- uses: actions/checkout@v4
1819

1920
- name: Install Rust
20-
uses: dtolnay/rust-toolchain@v1
21-
with:
22-
toolchain: stable
23-
components: clippy
21+
uses: actions-rust-lang/setup-rust-toolchain@v1
2422

2523
- name: Build
2624
run: make build
@@ -47,15 +45,15 @@ jobs:
4745
env:
4846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4947

50-
- name: Bump homebrew-core formula
48+
- name: Publish to homebrew
5149
uses: mislav/bump-homebrew-formula-action@v3
5250
if: matrix.os == 'macos-latest'
5351
env:
5452
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
5553
with:
5654
formula-name: onefetch
5755

58-
- name: Publish executable to WinGet
56+
- name: Publish to WinGet
5957
uses: vedantmgoyal9/winget-releaser@main
6058
if: matrix.os == 'windows-latest'
6159
with:
@@ -69,13 +67,11 @@ jobs:
6967
runs-on: ubuntu-latest
7068

7169
steps:
70+
- name: Checkout
7271
- uses: actions/checkout@v4
7372

7473
- name: Install Rust
75-
uses: dtolnay/rust-toolchain@v1
76-
with:
77-
toolchain: stable
78-
components: clippy
74+
uses: actions-rust-lang/setup-rust-toolchain@v1
7975

8076
- name: Publish to crates.io (ascii)
8177
env:

.github/workflows/language-badge.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Generate Language Badge
22
on:
33
schedule:
4-
# Once week at midnight UTC
4+
# Once a week at midnight UTC
55
- cron: "0 0 * * 0"
66
workflow_dispatch:
77

@@ -10,14 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13+
- name: Checkout
1314
- uses: actions/checkout@v4
1415
with:
1516
ref: ${{ github.event.pull_request.head.ref }}
1617
token: ${{ secrets.BADGE_TOKEN }}
18+
1719
- name: Install Rust
18-
uses: dtolnay/rust-toolchain@v1
19-
with:
20-
toolchain: stable
20+
uses: actions-rust-lang/setup-rust-toolchain@v1
21+
2122
- name: Get Language Count
2223
id: vars
2324
run: echo "::set-output name=language_count::$(cargo run -- --languages | wc -l)"

.github/workflows/msrv-badge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Generate MSRV Badge
22
on:
33
schedule:
4-
# Once every week at midnight UTC
4+
# Once a week at midnight UTC
55
- cron: "0 0 * * 0"
66
workflow_dispatch:
77

@@ -10,14 +10,17 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13+
- name: Checkout
1314
- uses: actions/checkout@v4
1415
with:
1516
ref: ${{ github.event.pull_request.head.ref }}
1617
token: ${{ secrets.BADGE_TOKEN }}
18+
1719
- name: Get Minimum Supported Rust Version
1820
uses: spenserblack/[email protected]
1921
id: get-msrv
2022
timeout-minutes: 60
23+
2124
- name: Create Badge
2225
run: curl https://img.shields.io/badge/rustc-${{ steps.get-msrv.outputs.msrv }}%2B-blue > ./assets/msrv-badge.svg
2326
- name: Commit Badge

0 commit comments

Comments
 (0)