mirror of
https://gitee.com/openharmony/third_party_rust_either
synced 2024-11-23 06:59:40 +00:00
Switch from actions-rs/cargo to plain run
This commit is contained in:
parent
396e19ba06
commit
c717bbc37f
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -37,28 +37,16 @@ jobs:
|
||||
cargo update -p serde_json --precise 1.0.39
|
||||
|
||||
- name: Build (no_std)
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --no-default-features
|
||||
run: cargo build --no-default-features
|
||||
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --features "${{ matrix.features }}"
|
||||
run: cargo build --features "${{ matrix.features }}"
|
||||
|
||||
- name: Test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --features "${{ matrix.features }}"
|
||||
run: cargo test --features "${{ matrix.features }}"
|
||||
|
||||
- name: Doc
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: doc
|
||||
args: --features "${{ matrix.features }}"
|
||||
run: cargo doc --features "${{ matrix.features }}"
|
||||
|
||||
clippy:
|
||||
name: Rustfmt and Clippy
|
||||
@ -73,14 +61,7 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Rustfmt
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: Clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
# args: -- -D warnings
|
||||
args: --
|
||||
run: cargo clippy # -- -D warnings
|
||||
|
Loading…
Reference in New Issue
Block a user