33
33
steps :
34
34
- uses : actions/checkout@v3
35
35
- uses : actions/setup-python@v4
36
+ with :
37
+ python-version : " 3.x"
36
38
- uses : matrix-org/setup-python-poetry@v1
37
39
with :
38
40
extras : " all"
44
46
steps :
45
47
- uses : actions/checkout@v3
46
48
- uses : actions/setup-python@v4
49
+ with :
50
+ python-version : " 3.x"
47
51
- run : " pip install 'click==8.1.1' 'GitPython>=3.1.20'"
48
52
- run : scripts-dev/check_schema_delta.py --force-colors
49
53
68
72
ref : ${{ github.event.pull_request.head.sha }}
69
73
fetch-depth : 0
70
74
- uses : actions/setup-python@v4
75
+ with :
76
+ python-version : " 3.x"
71
77
- run : " pip install 'towncrier>=18.6.0rc1'"
72
78
- run : scripts-dev/check-newsfragment.sh
73
79
env :
@@ -93,10 +99,12 @@ jobs:
93
99
- uses : actions/checkout@v3
94
100
95
101
- name : Install Rust
96
- uses : actions-rs/toolchain@v1
102
+ # There don't seem to be versioned releases of this action per se: for each rust
103
+ # version there is a branch which gets constantly rebased on top of master.
104
+ # We pin to a specific commit for paranoia's sake.
105
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
97
106
with :
98
107
toolchain : 1.58.1
99
- override : true
100
108
components : clippy
101
109
- uses : Swatinem/rust-cache@v2
102
110
@@ -111,11 +119,13 @@ jobs:
111
119
- uses : actions/checkout@v3
112
120
113
121
- name : Install Rust
114
- uses : actions-rs/toolchain@v1
122
+ # There don't seem to be versioned releases of this action per se: for each rust
123
+ # version there is a branch which gets constantly rebased on top of master.
124
+ # We pin to a specific commit for paranoia's sake.
125
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
115
126
with :
116
- toolchain : 1.58.1
117
- override : true
118
- components : rustfmt
127
+ toolchain : 1.58.1
128
+ components : rustfmt
119
129
- uses : Swatinem/rust-cache@v2
120
130
121
131
- run : cargo fmt --check
@@ -143,6 +153,8 @@ jobs:
143
153
steps :
144
154
- uses : actions/checkout@v3
145
155
- uses : actions/setup-python@v4
156
+ with :
157
+ python-version : " 3.x"
146
158
- id : get-matrix
147
159
run : .ci/scripts/calculate_jobs.py
148
160
outputs :
@@ -169,10 +181,12 @@ jobs:
169
181
postgres:${{ matrix.job.postgres-version }}
170
182
171
183
- name : Install Rust
172
- uses : actions-rs/toolchain@v1
184
+ # There don't seem to be versioned releases of this action per se: for each rust
185
+ # version there is a branch which gets constantly rebased on top of master.
186
+ # We pin to a specific commit for paranoia's sake.
187
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
173
188
with :
174
189
toolchain : 1.58.1
175
- override : true
176
190
- uses : Swatinem/rust-cache@v2
177
191
178
192
- uses : matrix-org/setup-python-poetry@v1
@@ -211,10 +225,12 @@ jobs:
211
225
- uses : actions/checkout@v3
212
226
213
227
- name : Install Rust
214
- uses : actions-rs/toolchain@v1
228
+ # There don't seem to be versioned releases of this action per se: for each rust
229
+ # version there is a branch which gets constantly rebased on top of master.
230
+ # We pin to a specific commit for paranoia's sake.
231
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
215
232
with :
216
233
toolchain : 1.58.1
217
- override : true
218
234
- uses : Swatinem/rust-cache@v2
219
235
220
236
# There aren't wheels for some of the older deps, so we need to install
@@ -327,10 +343,12 @@ jobs:
327
343
run : cat sytest-blacklist .ci/worker-blacklist > synapse-blacklist-with-workers
328
344
329
345
- name : Install Rust
330
- uses : actions-rs/toolchain@v1
346
+ # There don't seem to be versioned releases of this action per se: for each rust
347
+ # version there is a branch which gets constantly rebased on top of master.
348
+ # We pin to a specific commit for paranoia's sake.
349
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
331
350
with :
332
351
toolchain : 1.58.1
333
- override : true
334
352
- uses : Swatinem/rust-cache@v2
335
353
336
354
- name : Run SyTest
@@ -459,10 +477,12 @@ jobs:
459
477
path : synapse
460
478
461
479
- name : Install Rust
462
- uses : actions-rs/toolchain@v1
480
+ # There don't seem to be versioned releases of this action per se: for each rust
481
+ # version there is a branch which gets constantly rebased on top of master.
482
+ # We pin to a specific commit for paranoia's sake.
483
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
463
484
with :
464
485
toolchain : 1.58.1
465
- override : true
466
486
- uses : Swatinem/rust-cache@v2
467
487
468
488
- name : Prepare Complement's Prerequisites
@@ -485,10 +505,12 @@ jobs:
485
505
- uses : actions/checkout@v3
486
506
487
507
- name : Install Rust
488
- uses : actions-rs/toolchain@v1
508
+ # There don't seem to be versioned releases of this action per se: for each rust
509
+ # version there is a branch which gets constantly rebased on top of master.
510
+ # We pin to a specific commit for paranoia's sake.
511
+ uses : dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
489
512
with :
490
513
toolchain : 1.58.1
491
- override : true
492
514
- uses : Swatinem/rust-cache@v2
493
515
494
516
- run : cargo test
0 commit comments