Skip to content

Commit

Permalink
modify ci to use each member's config
Browse files Browse the repository at this point in the history
  • Loading branch information
yhql committed May 3, 2024
1 parent 757375c commit 4fee6d4
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
package: [include_gif, testmacro, ledger_secure_sdk_sys, ledger_device_sdk]
steps:
- name: Print Environment variables
run:
run:
echo "The value of RUST_NIGHTLY is $RUST_NIGHTLY"
- name: Clone
uses: actions/checkout@v4
- name: Cargo clippy
working-directory: ${{ matrix.package }}
run: |
cargo +$RUST_NIGHTLY clippy -p ${{ matrix.package }} --target ${{ matrix.target }}
cargo +$RUST_NIGHTLY clippy --target ${{ matrix.target }}
clippy-cargo-ledger:
name: Run static analysis for cargo-ledger
runs-on: ubuntu-latest
Expand All @@ -42,8 +43,9 @@ jobs:
- name: Clone
uses: actions/checkout@v4
- name: Cargo clippy for cargo-ledger
working-directory: cargo-ledger
run: |
cargo +$RUST_STABLE clippy -p cargo-ledger --no-deps
cargo +$RUST_STABLE clippy --no-deps
format:
name: Check code formatting
Expand All @@ -69,8 +71,9 @@ jobs:
- name: Clone
uses: actions/checkout@v4
- name: Cargo build
working-directory: ledger_device_sdk
run: |
cargo +$RUST_NIGHTLY build -p ledger_device_sdk --target ${{ matrix.target }}
cargo +$RUST_NIGHTLY build --target ${{ matrix.target }}
build-cargo-ledger:
name: Build SDK
Expand All @@ -81,8 +84,9 @@ jobs:
- name: Clone
uses: actions/checkout@v4
- name: Cargo build
working-directory: cargo-ledger
run: |
cargo +$RUST_STABLE build -p cargo-ledger
cargo +$RUST_STABLE build
test:
name: Run unit and integration tests
Expand All @@ -99,5 +103,6 @@ jobs:
- name: Clone
uses: actions/checkout@v4
- name: Unit tests
working-directory: ledger_device_sdk
run: |
cargo +$RUST_NIGHTLY test -p ledger_device_sdk --target ${{ matrix.target }} --features speculos
cargo +$RUST_NIGHTLY test --target ${{ matrix.target }} --features speculos

0 comments on commit 4fee6d4

Please sign in to comment.