Skip to content

Commit

Permalink
Fix workflow build_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Feb 6, 2024
1 parent 6309e9f commit f27e3e0
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 @@ -47,8 +47,9 @@ jobs:
- name: Patch Cargo.toml
continue-on-error: false
run: |
build_directory=$(grep -F "build_directory" ledger_app.toml | rev | cut -d' ' -f1)
cd ${{ matrix.repo }}-${{ matrix.branch }}/$build_directory
cd ${{ matrix.repo }}-${{ matrix.branch }}
build_directory=$(grep -F "build_directory" ledger_app.toml | cut -d' ' -f3)
cd $build_directory
# Patch ledger_device_sdk
if grep -Fxq "[patch.crates-io.ledger_device_sdk]" Cargo.toml; then
echo "The patch already exists in the file."
Expand All @@ -74,8 +75,9 @@ jobs:
- name: Build
run: |
build_directory=$(grep -F "build_directory" ledger_app.toml | rev | cut -d' ' -f1)
cd ${{ matrix.repo }}-${{ matrix.branch }}/$build_directory
cd ${{ matrix.repo }}-${{ matrix.branch }}
build_directory=$(grep -F "build_directory" ledger_app.toml | cut -d' ' -f3)
cd $build_directory
for device in ${{ matrix.device }}; do
# Required as patch has a different version from what is locked in Cargo.lock
cargo +$RUST_NIGHTLY update ledger_device_sdk
Expand Down

0 comments on commit f27e3e0

Please sign in to comment.