Use update ci workflows to use defaults.run.working-directory

This commit is contained in:
Steve Myers
2022-11-11 16:30:33 -06:00
parent 64c496f815
commit 4f544e465b
4 changed files with 78 additions and 104 deletions

View File

@@ -12,6 +12,9 @@ jobs:
build-test:
name: Build and test
runs-on: ubuntu-latest
defaults:
run:
working-directory: bdk-ffi
strategy:
matrix:
rust:
@@ -41,22 +44,19 @@ jobs:
- name: Update toolchain
run: rustup update
- name: Build
run: |
cd bdk-ffi
cargo build
run: cargo build
- name: Clippy
if: ${{ matrix.rust.clippy }}
run: |
cd bdk-ffi
cargo clippy --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: |
cd bdk-ffi
CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test
run: CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test
fmt:
name: Rust fmt
runs-on: ubuntu-latest
defaults:
run:
working-directory: bdk-ffi
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -69,6 +69,4 @@ jobs:
- name: Update toolchain
run: rustup update
- name: Check fmt
run: |
cd bdk-ffi
cargo fmt --all -- --config format_code_in_doc_comments=true --check
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check