ci: remove dependency on actions-rs/cargo

It is unmaintained and throws many warnings about using deprecated
Node and GitHub Actions commands.
This commit is contained in:
link2xt
2022-12-08 09:15:13 +00:00
committed by holger krekel
parent 3360c6aa96
commit 1224222984
2 changed files with 8 additions and 31 deletions

View File

@@ -26,10 +26,7 @@ jobs:
- run: rustup component add rustfmt
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check
run_clippy:
runs-on: ubuntu-latest
@@ -65,10 +62,7 @@ jobs:
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v1
- name: Rustdoc
uses: actions-rs/cargo@v1
with:
command: doc
args: --document-private-items --no-deps
run: cargo doc --document-private-items --no-deps
build_and_test:
name: Build and test
@@ -105,21 +99,13 @@ jobs:
uses: swatinem/rust-cache@v1
- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples --tests --features repl --benches
run: cargo check --all --bins --examples --tests --features repl --benches
- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all
run: cargo test --all
- name: test cargo vendor
uses: actions-rs/cargo@v1
with:
command: vendor
run: cargo vendor
- name: install python
if: ${{ matrix.python }}
@@ -133,10 +119,7 @@ jobs:
- name: build C library
if: ${{ matrix.python }}
uses: actions-rs/cargo@v1
with:
command: build
args: -p deltachat_ffi --features jsonrpc
run: cargo build -p deltachat_ffi --features jsonrpc
- name: run python tests
if: ${{ matrix.python }}
@@ -149,10 +132,7 @@ jobs:
- name: build deltachat-rpc-server
if: ${{ matrix.python }}
uses: actions-rs/cargo@v1
with:
command: build
args: -p deltachat-rpc-server
run: cargo build -p deltachat-rpc-server
- name: run deltachat-rpc-client tests
if: ${{ matrix.python }}

View File

@@ -20,10 +20,7 @@ jobs:
override: true
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: --example repl --features repl,vendored
run: cargo build --example repl --features repl,vendored
- name: Upload binary
uses: actions/upload-artifact@v3