Skip to content

Commit

Permalink
ci: Replace unmaintained actions-rs/cargo action
Browse files Browse the repository at this point in the history
… we really didn't need it and can use run instead.
  • Loading branch information
jplatte committed Feb 10, 2023
1 parent 3f16b32 commit 4a5a029
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 68 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/bindings_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ jobs:

- name: Build
if: steps.xtask-cache.outputs.cache-hit != 'true'
uses: actions-rs/cargo@v1
with:
command: build
args: -p xtask
run: |
cargo build -p xtask
test-uniffi-codegen:
name: Test UniFFI bindings generation
Expand Down Expand Up @@ -209,10 +207,8 @@ jobs:

- name: Build
if: steps.xtask-cache.outputs.cache-hit != 'true'
uses: actions-rs/cargo@v1
with:
command: build
args: -p xtask
run: |
cargo build -p xtask
test-apple:
name: matrix-rust-components-swift
Expand Down
79 changes: 27 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ jobs:

- name: Build
if: steps.xtask-cache.outputs.cache-hit != 'true'
uses: actions-rs/cargo@v1
with:
command: build
args: -p xtask
run: |
cargo build -p xtask
test-matrix-sdk-features:
name: 🐧 [m], ${{ matrix.name }}
Expand Down Expand Up @@ -84,10 +82,8 @@ jobs:
key: xtask-${{ hashFiles('xtask/**') }}

- name: Test
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci test-features ${{ matrix.name }}
run: |
cargo run -p xtask -- ci test-features ${{ matrix.name }}
test-matrix-sdk-examples:
name: 🐧 [m]-examples
Expand Down Expand Up @@ -115,10 +111,8 @@ jobs:
key: xtask-${{ hashFiles('xtask/**') }}

- name: Test
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci examples
run: |
cargo run -p xtask -- ci examples
test-matrix-sdk-crypto:
name: 🐧 [m]-crypto
Expand Down Expand Up @@ -146,10 +140,8 @@ jobs:
key: xtask-${{ hashFiles('xtask/**') }}

- name: Test
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci test-crypto
run: |
cargo run -p xtask -- ci test-crypto
test-all-crates:
name: ${{ matrix.name }}
Expand Down Expand Up @@ -191,16 +183,13 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Test
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --workspace --exclude matrix-sdk-integration-testing --exclude sliding-sync-integration-test
run: |
cargo nextest run --workspace \
--exclude matrix-sdk-integration-testing --exclude sliding-sync-integration-test
- name: Test documentation
uses: actions-rs/cargo@v1
with:
command: test
args: --doc
run: |
cargo test --doc
test-wasm:
name: 🕸️ ${{ matrix.name }}
Expand Down Expand Up @@ -268,16 +257,12 @@ jobs:
key: xtask-${{ hashFiles('xtask/**') }}

- name: Rust Check
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci wasm ${{ matrix.cmd }}
run: |
cargo run -p xtask -- ci wasm ${{ matrix.cmd }}
- name: Wasm-Pack test
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci wasm-pack ${{ matrix.cmd }}
run: |
cargo run -p xtask -- ci wasm-pack ${{ matrix.cmd }}
test-appservice:
name: ${{ matrix.os-name }} [m]-appservice
Expand Down Expand Up @@ -315,10 +300,8 @@ jobs:
key: xtask-${{ hashFiles('xtask/**') }}

- name: Run checks
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci test-appservice
run: |
cargo run -p xtask -- ci test-appservice
formatting:
name: Check Formatting
Expand All @@ -335,10 +318,8 @@ jobs:
components: rustfmt

- name: Cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: |
cargo fmt -- --check
typos:
name: Spell Check with Typos
Expand Down Expand Up @@ -382,10 +363,8 @@ jobs:
key: xtask-${{ hashFiles('xtask/**') }}

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask -- ci clippy
run: |
cargo run -p xtask -- ci clippy
integration-tests:
name: Integration test
Expand Down Expand Up @@ -417,10 +396,8 @@ jobs:
disableRateLimiting: true

- name: Test
uses: actions-rs/cargo@v1
with:
command: nextest
args: run -p matrix-sdk-integration-testing
run: |
cargo nextest run -p matrix-sdk-integration-testing
sliding-sync-integration-tests:
Expand Down Expand Up @@ -485,7 +462,5 @@ jobs:
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'

- name: Test
uses: actions-rs/cargo@v1
with:
command: nextest
args: run -p sliding-sync-integration-tests
run: |
cargo nextest run -p sliding-sync-integration-tests
6 changes: 2 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ jobs:
serverName: "matrix-sdk.rs"

- name: Run tarpaulin
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --out Xml -e sliding-sync-integration-test
run: |
cargo tarpaulin --out Xml -e sliding-sync-integration-test
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
6 changes: 2 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ jobs:

# Keep in sync with xtask docs
- name: Build rust documentation
uses: actions-rs/cargo@v1
env:
# Work around https://github.com/rust-lang/cargo/issues/10744
CARGO_TARGET_APPLIES_TO_HOST: "true"
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs -Dwarnings"
with:
command: doc
args: --no-deps --features docsrs
run:
cargo doc --no-deps --features docsrs

- name: Build `matrix-sdk-crypto-nodejs` doc
run: |
Expand Down

0 comments on commit 4a5a029

Please sign in to comment.