mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 09:16:32 +03:00
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:
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@@ -26,10 +26,7 @@ jobs:
|
|||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- name: Cache rust cargo artifacts
|
- name: Cache rust cargo artifacts
|
||||||
uses: swatinem/rust-cache@v1
|
uses: swatinem/rust-cache@v1
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo fmt --all -- --check
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
|
|
||||||
run_clippy:
|
run_clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -65,10 +62,7 @@ jobs:
|
|||||||
- name: Cache rust cargo artifacts
|
- name: Cache rust cargo artifacts
|
||||||
uses: swatinem/rust-cache@v1
|
uses: swatinem/rust-cache@v1
|
||||||
- name: Rustdoc
|
- name: Rustdoc
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo doc --document-private-items --no-deps
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --document-private-items --no-deps
|
|
||||||
|
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Build and test
|
name: Build and test
|
||||||
@@ -105,21 +99,13 @@ jobs:
|
|||||||
uses: swatinem/rust-cache@v1
|
uses: swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: check
|
- name: check
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --all --bins --examples --tests --features repl --benches
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --all --bins --examples --tests --features repl --benches
|
|
||||||
|
|
||||||
- name: tests
|
- name: tests
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --all
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --all
|
|
||||||
|
|
||||||
- name: test cargo vendor
|
- name: test cargo vendor
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo vendor
|
||||||
with:
|
|
||||||
command: vendor
|
|
||||||
|
|
||||||
- name: install python
|
- name: install python
|
||||||
if: ${{ matrix.python }}
|
if: ${{ matrix.python }}
|
||||||
@@ -133,10 +119,7 @@ jobs:
|
|||||||
|
|
||||||
- name: build C library
|
- name: build C library
|
||||||
if: ${{ matrix.python }}
|
if: ${{ matrix.python }}
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build -p deltachat_ffi --features jsonrpc
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: -p deltachat_ffi --features jsonrpc
|
|
||||||
|
|
||||||
- name: run python tests
|
- name: run python tests
|
||||||
if: ${{ matrix.python }}
|
if: ${{ matrix.python }}
|
||||||
@@ -149,10 +132,7 @@ jobs:
|
|||||||
|
|
||||||
- name: build deltachat-rpc-server
|
- name: build deltachat-rpc-server
|
||||||
if: ${{ matrix.python }}
|
if: ${{ matrix.python }}
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build -p deltachat-rpc-server
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: -p deltachat-rpc-server
|
|
||||||
|
|
||||||
- name: run deltachat-rpc-client tests
|
- name: run deltachat-rpc-client tests
|
||||||
if: ${{ matrix.python }}
|
if: ${{ matrix.python }}
|
||||||
|
|||||||
5
.github/workflows/repl.yml
vendored
5
.github/workflows/repl.yml
vendored
@@ -20,10 +20,7 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build --example repl --features repl,vendored
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --example repl --features repl,vendored
|
|
||||||
|
|
||||||
- name: Upload binary
|
- name: Upload binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user