Skip to content

Commit 36acf47

Browse files
authored
Replace unmaintained/outdated github actions (#476)
The toolchain is now installed with `dtolnay/rust-toolchain`. Signed-off-by: Constantin Nickel <[email protected]>
1 parent a7b8f09 commit 36acf47

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424
- name: Install toolchain
25-
uses: actions-rs/toolchain@v1
26-
with:
27-
toolchain: "stable"
28-
default: true
25+
uses: dtolnay/rust-toolchain@stable
2926
- name: cargo build
3027
run: cargo build
3128
- name: cargo test
@@ -47,12 +44,11 @@ jobs:
4744
- "nightly"
4845
steps:
4946
- name: Checkout repository
50-
uses: actions/checkout@v2
47+
uses: actions/checkout@v3
5148
- name: Install toolchain
52-
uses: actions-rs/toolchain@v1
49+
uses: dtolnay/rust-toolchain@master
5350
with:
5451
toolchain: ${{ matrix.channel }}
55-
default: true
5652
- name: cargo build
5753
run: cargo build
5854
- name: cargo test
@@ -66,12 +62,11 @@ jobs:
6662
runs-on: ubuntu-latest
6763
steps:
6864
- name: Checkout repository
69-
uses: actions/checkout@v2
65+
uses: actions/checkout@v3
7066
- name: Install toolchain
71-
uses: actions-rs/toolchain@v1
67+
uses: dtolnay/rust-toolchain@master
7268
with:
7369
toolchain: ${{ env['ACTION_MSRV_TOOLCHAIN'] }}
74-
default: true
7570
- run: cargo build
7671
- run: cargo test --no-run
7772
- run: cargo build --no-default-features
@@ -83,12 +78,11 @@ jobs:
8378
runs-on: ubuntu-latest
8479
steps:
8580
- name: Checkout repository
86-
uses: actions/checkout@v2
81+
uses: actions/checkout@v3
8782
- name: Install toolchain
88-
uses: actions-rs/toolchain@v1
83+
uses: dtolnay/rust-toolchain@master
8984
with:
9085
toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }}
91-
default: true
9286
components: rustfmt, clippy
9387
- name: cargo fmt (check)
9488
run: cargo fmt --all -- --check -l
@@ -103,12 +97,11 @@ jobs:
10397
runs-on: ubuntu-latest
10498
steps:
10599
- name: Checkout repository
106-
uses: actions/checkout@v2
100+
uses: actions/checkout@v3
107101
- name: Install toolchain
108-
uses: actions-rs/toolchain@v1
102+
uses: dtolnay/rust-toolchain@master
109103
with:
110104
toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }}
111-
default: true
112105
- name: cargo bench (prometheus)
113106
run: cargo bench -p prometheus
114107
- name: cargo bench (prometheus-static-metric)

0 commit comments

Comments
 (0)