Skip to content

Commit 96558a5

Browse files
committed
Checkout and Build against Rust SDK branch only when specified
1 parent 3787c0b commit 96558a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/reusable_build_all_apps.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
type: string
1010
rust_sdk_branch:
1111
required: false
12-
default: 'master'
12+
default: ''
1313
type: string
1414
workflow_dispatch:
1515
inputs:
@@ -19,7 +19,7 @@ on:
1919
type: string
2020
rust_sdk_branch:
2121
required: false
22-
default: 'master'
22+
default: ''
2323
type: string
2424

2525
env:
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v4
3737
with:
3838
repository: LedgerHQ/ledger-device-rust-sdk
39-
ref: ${{ inputs.rust_sdk_branch }}
39+
ref: 'master'
4040
- name: Set up Python
4141
uses: actions/setup-python@v4
4242
with:
@@ -74,6 +74,7 @@ jobs:
7474
- name: Install ledgered
7575
run: pip install ledgered --break-system-packages
7676
- name: Clone SDK
77+
if: ${{ inputs.rust_sdk_branch != '' }}
7778
uses: actions/checkout@v4
7879
with:
7980
path: sdk
@@ -87,7 +88,7 @@ jobs:
8788
path: ${{ matrix.app-name }}
8889
- name: Patch Cargo.toml
8990
continue-on-error: false
90-
if: ${{ inputs.rust_sdk_branch != 'master' }}
91+
if: ${{ inputs.rust_sdk_branch != '' }}
9192
run: |
9293
cd ${{ matrix.app-name }}
9394
build_directory=$(ledger-manifest --output-build-directory ledger_app.toml)

0 commit comments

Comments
 (0)