Skip to content

Commit 4a5a029

Browse files
committed
ci: Replace unmaintained actions-rs/cargo action
… we really didn't need it and can use run instead.
1 parent 3f16b32 commit 4a5a029

File tree

4 files changed

+35
-68
lines changed

4 files changed

+35
-68
lines changed

.github/workflows/bindings_ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ jobs:
4242

4343
- name: Build
4444
if: steps.xtask-cache.outputs.cache-hit != 'true'
45-
uses: actions-rs/cargo@v1
46-
with:
47-
command: build
48-
args: -p xtask
45+
run: |
46+
cargo build -p xtask
4947
5048
test-uniffi-codegen:
5149
name: Test UniFFI bindings generation
@@ -209,10 +207,8 @@ jobs:
209207

210208
- name: Build
211209
if: steps.xtask-cache.outputs.cache-hit != 'true'
212-
uses: actions-rs/cargo@v1
213-
with:
214-
command: build
215-
args: -p xtask
210+
run: |
211+
cargo build -p xtask
216212
217213
test-apple:
218214
name: matrix-rust-components-swift

.github/workflows/ci.yml

Lines changed: 27 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ jobs:
4040

4141
- name: Build
4242
if: steps.xtask-cache.outputs.cache-hit != 'true'
43-
uses: actions-rs/cargo@v1
44-
with:
45-
command: build
46-
args: -p xtask
43+
run: |
44+
cargo build -p xtask
4745
4846
test-matrix-sdk-features:
4947
name: 🐧 [m], ${{ matrix.name }}
@@ -84,10 +82,8 @@ jobs:
8482
key: xtask-${{ hashFiles('xtask/**') }}
8583

8684
- name: Test
87-
uses: actions-rs/cargo@v1
88-
with:
89-
command: run
90-
args: -p xtask -- ci test-features ${{ matrix.name }}
85+
run: |
86+
cargo run -p xtask -- ci test-features ${{ matrix.name }}
9187
9288
test-matrix-sdk-examples:
9389
name: 🐧 [m]-examples
@@ -115,10 +111,8 @@ jobs:
115111
key: xtask-${{ hashFiles('xtask/**') }}
116112

117113
- name: Test
118-
uses: actions-rs/cargo@v1
119-
with:
120-
command: run
121-
args: -p xtask -- ci examples
114+
run: |
115+
cargo run -p xtask -- ci examples
122116
123117
test-matrix-sdk-crypto:
124118
name: 🐧 [m]-crypto
@@ -146,10 +140,8 @@ jobs:
146140
key: xtask-${{ hashFiles('xtask/**') }}
147141

148142
- name: Test
149-
uses: actions-rs/cargo@v1
150-
with:
151-
command: run
152-
args: -p xtask -- ci test-crypto
143+
run: |
144+
cargo run -p xtask -- ci test-crypto
153145
154146
test-all-crates:
155147
name: ${{ matrix.name }}
@@ -191,16 +183,13 @@ jobs:
191183
uses: taiki-e/install-action@nextest
192184

193185
- name: Test
194-
uses: actions-rs/cargo@v1
195-
with:
196-
command: nextest
197-
args: run --workspace --exclude matrix-sdk-integration-testing --exclude sliding-sync-integration-test
186+
run: |
187+
cargo nextest run --workspace \
188+
--exclude matrix-sdk-integration-testing --exclude sliding-sync-integration-test
198189
199190
- name: Test documentation
200-
uses: actions-rs/cargo@v1
201-
with:
202-
command: test
203-
args: --doc
191+
run: |
192+
cargo test --doc
204193
205194
test-wasm:
206195
name: 🕸️ ${{ matrix.name }}
@@ -268,16 +257,12 @@ jobs:
268257
key: xtask-${{ hashFiles('xtask/**') }}
269258

270259
- name: Rust Check
271-
uses: actions-rs/cargo@v1
272-
with:
273-
command: run
274-
args: -p xtask -- ci wasm ${{ matrix.cmd }}
260+
run: |
261+
cargo run -p xtask -- ci wasm ${{ matrix.cmd }}
275262
276263
- name: Wasm-Pack test
277-
uses: actions-rs/cargo@v1
278-
with:
279-
command: run
280-
args: -p xtask -- ci wasm-pack ${{ matrix.cmd }}
264+
run: |
265+
cargo run -p xtask -- ci wasm-pack ${{ matrix.cmd }}
281266
282267
test-appservice:
283268
name: ${{ matrix.os-name }} [m]-appservice
@@ -315,10 +300,8 @@ jobs:
315300
key: xtask-${{ hashFiles('xtask/**') }}
316301

317302
- name: Run checks
318-
uses: actions-rs/cargo@v1
319-
with:
320-
command: run
321-
args: -p xtask -- ci test-appservice
303+
run: |
304+
cargo run -p xtask -- ci test-appservice
322305
323306
formatting:
324307
name: Check Formatting
@@ -335,10 +318,8 @@ jobs:
335318
components: rustfmt
336319

337320
- name: Cargo fmt
338-
uses: actions-rs/cargo@v1
339-
with:
340-
command: fmt
341-
args: -- --check
321+
run: |
322+
cargo fmt -- --check
342323
343324
typos:
344325
name: Spell Check with Typos
@@ -382,10 +363,8 @@ jobs:
382363
key: xtask-${{ hashFiles('xtask/**') }}
383364

384365
- name: Clippy
385-
uses: actions-rs/cargo@v1
386-
with:
387-
command: run
388-
args: -p xtask -- ci clippy
366+
run: |
367+
cargo run -p xtask -- ci clippy
389368
390369
integration-tests:
391370
name: Integration test
@@ -417,10 +396,8 @@ jobs:
417396
disableRateLimiting: true
418397

419398
- name: Test
420-
uses: actions-rs/cargo@v1
421-
with:
422-
command: nextest
423-
args: run -p matrix-sdk-integration-testing
399+
run: |
400+
cargo nextest run -p matrix-sdk-integration-testing
424401
425402
426403
sliding-sync-integration-tests:
@@ -485,7 +462,5 @@ jobs:
485462
options: '-e "SYNCV3_SERVER=http://locahost:8228" -e "SYNCV3_SECRET=SUPER_CI_SECRET" -e "SYNCV3_BINDADDR=:8118" -e "SYNCV3_DB=user=postgres password=postgres dbname=syncv3 sslmode=disable host=postgres" -p 8118:8118'
486463

487464
- name: Test
488-
uses: actions-rs/cargo@v1
489-
with:
490-
command: nextest
491-
args: run -p sliding-sync-integration-tests
465+
run: |
466+
cargo nextest run -p sliding-sync-integration-tests

.github/workflows/coverage.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ jobs:
4545
serverName: "matrix-sdk.rs"
4646

4747
- name: Run tarpaulin
48-
uses: actions-rs/cargo@v1
49-
with:
50-
command: tarpaulin
51-
args: --out Xml -e sliding-sync-integration-test
48+
run: |
49+
cargo tarpaulin --out Xml -e sliding-sync-integration-test
5250
5351
- name: Upload to codecov.io
5452
uses: codecov/codecov-action@v3

.github/workflows/documentation.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ jobs:
2828

2929
# Keep in sync with xtask docs
3030
- name: Build rust documentation
31-
uses: actions-rs/cargo@v1
3231
env:
3332
# Work around https://github.com/rust-lang/cargo/issues/10744
3433
CARGO_TARGET_APPLIES_TO_HOST: "true"
3534
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs -Dwarnings"
36-
with:
37-
command: doc
38-
args: --no-deps --features docsrs
35+
run:
36+
cargo doc --no-deps --features docsrs
3937

4038
- name: Build `matrix-sdk-crypto-nodejs` doc
4139
run: |

0 commit comments

Comments
 (0)