Skip to content

Commit 6758521

Browse files
committed
simplify ci setup a little
1 parent 6156da3 commit 6758521

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
rust-toolchain:
18-
- nightly-2022-07-01
18+
- nightly
1919
python-version:
2020
- '3.7'
2121
- '3.8'
@@ -34,8 +34,16 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v3
3636

37-
- name: install rust
38-
uses: actions-rs/toolchain@v1.0.6
37+
- name: install rust nightly
38+
if: matrix.rust-toolchain == 'nightly'
39+
uses: actions-rs/toolchain@v1
40+
with:
41+
# use the default version from rust-toolchain in case rust in pinned there
42+
profile: minimal
43+
44+
- name: install rust stable
45+
if: matrix.rust-toolchain != 'nightly'
46+
uses: actions-rs/toolchain@v1
3947
with:
4048
profile: minimal
4149
toolchain: ${{ matrix.rust-toolchain }}
@@ -97,7 +105,7 @@ jobs:
97105
- uses: actions/checkout@v3
98106

99107
- name: install rust
100-
uses: actions-rs/toolchain@v1.0.6
108+
uses: actions-rs/toolchain@v1
101109
with:
102110
profile: minimal
103111
override: true
@@ -140,7 +148,7 @@ jobs:
140148
- uses: actions/checkout@v3
141149

142150
- name: install rust
143-
uses: actions-rs/toolchain@v1.0.6
151+
uses: actions-rs/toolchain@v1
144152
with:
145153
profile: minimal
146154

0 commit comments

Comments
 (0)