@@ -27,12 +27,21 @@ jobs:
27
27
uses : actions/checkout@v3
28
28
29
29
# Rust setup (ensures latest stable)
30
- - name : Set up Rust tool-chain
30
+ - name : Set up Rust tool-chain (Liux/Windows)
31
+ if : runner.os != 'macOS'
31
32
uses : actions-rust-lang/setup-rust-toolchain@v1
32
33
with :
33
34
toolchain : stable
34
35
components : rustfmt, clippy
35
36
37
+ - name : Set up Rust tool-chain (macOS)
38
+ if : runner.os == 'macOS'
39
+ uses : actions-rs/toolchain@v1
40
+ with :
41
+ toolchain : stable
42
+ override : true
43
+ components : rustfmt, clippy
44
+
36
45
# Python setup
37
46
- name : Set up Python environment
38
47
uses : actions/setup-python@v4
78
87
run : python -m pip install --upgrade pip setuptools wheel pre-commit poetry==1.3.2
79
88
80
89
# Setup Poetry caching
81
- - name : Set output (Linux)
82
- if : runner.os == 'Linux'
83
- run : echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV
84
-
85
- - name : Set output (macOS)
86
- if : runner.os == 'macOS'
90
+ - name : Set output
87
91
run : echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV
88
92
89
- - name : Set output (Windows)
90
- if : runner.os == 'Windows'
91
- run : echo "dir=$(poetry config cache-dir)" | Out-File -FilePath $env:GITHUB_ENV -Append >> $GITHUB_ENV
92
-
93
93
- name : Poetry cache
94
94
id : cached-poetry
95
95
uses : actions/cache@v3
@@ -159,18 +159,9 @@ jobs:
159
159
run : python -m pip install --upgrade pip setuptools wheel pre-commit poetry==1.3.2
160
160
161
161
# Setup Poetry caching
162
- - name : Set output (Linux)
163
- if : runner.os == 'Linux'
164
- run : echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV
165
-
166
- - name : Set output (macOS)
167
- if : runner.os == 'macOS'
162
+ - name : Set output
168
163
run : echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV
169
164
170
- - name : Set output (Windows)
171
- if : runner.os == 'Windows'
172
- run : echo "dir=$(poetry config cache-dir)" | Out-File -FilePath $env:GITHUB_ENV -Append >> $GITHUB_ENV
173
-
174
165
- name : Poetry cache
175
166
id : cached-poetry
176
167
uses : actions/cache@v3
@@ -231,12 +222,21 @@ jobs:
231
222
uses : actions/checkout@v3
232
223
233
224
# Rust setup (ensures latest stable)
234
- - name : Set up Rust tool-chain
225
+ - name : Set up Rust tool-chain (Liux/Windows)
226
+ if : runner.os != 'macOS'
235
227
uses : actions-rust-lang/setup-rust-toolchain@v1
236
228
with :
237
229
toolchain : stable
238
230
components : rustfmt, clippy
239
231
232
+ - name : Set up Rust tool-chain (macOS)
233
+ if : runner.os == 'macOS'
234
+ uses : actions-rs/toolchain@v1
235
+ with :
236
+ toolchain : stable
237
+ override : true
238
+ components : rustfmt, clippy
239
+
240
240
# Python setup
241
241
- name : Set up Python environment
242
242
uses : actions/setup-python@v4
0 commit comments