Skip to content

Commit

Permalink
Extract devices from ledger_app.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Feb 6, 2024
1 parent 05d672e commit 6eba75b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build_all_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ jobs:
include:
- repo: 'app-mobilecoin'
branch: 'develop'
device: nanosplus
- repo: 'app-radix-babylon'
branch: 'develop'
device: nanos nanox nanosplus
- repo: 'app-boilerplate-rust'
branch: 'main'
device: nanos nanox nanosplus

runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -80,8 +77,13 @@ jobs:
run: |
cd ${{ matrix.repo }}-${{ matrix.branch }}
build_directory=$(ledger-manifest --output-build-directory ledger_app.toml)
devices="$(ledger-manifest --output-devices ledger_app.toml | sed 's/+/plus/')"
formatted_devices=$(echo $devices | sed "s/\['//;s/'\]//;s/', '/ /g")
eval "devices_array=($formatted_devices)"
cd $build_directory
for device in ${{ matrix.device }}; do
for device in "${devices_array[@]}"; do
# Required as patch has a different version from what is locked in Cargo.lock
cargo +$RUST_NIGHTLY update ledger_device_sdk
cargo +$RUST_NIGHTLY update ledger_secure_sdk_sys
Expand Down

0 comments on commit 6eba75b

Please sign in to comment.