Remove usage of actions-rs/cargo action
This commit is contained in:
parent
e8753f1272
commit
f44dfd4312
|
@ -24,24 +24,14 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo test -p instant-segment --all-features
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: -p instant-segment --all-features --all-targets
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: -p instant-segment --all-features
|
|
||||||
|
|
||||||
test-python:
|
test-python:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo build -p instant-segment-py --release
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: -p instant-segment-py --release
|
|
||||||
- name: Test Python bindings
|
- name: Test Python bindings
|
||||||
run: |
|
run: |
|
||||||
cp target/release/libinstant_segment.so instant-segment-py/test/instant_segment.so
|
cp target/release/libinstant_segment.so instant-segment-py/test/instant_segment.so
|
||||||
|
@ -54,15 +44,8 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
- uses: actions-rs/cargo@v1
|
- run: cargo fmt --all -- --check
|
||||||
with:
|
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --workspace --all-targets --all-features -- -D warnings
|
|
||||||
|
|
||||||
audit:
|
audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue