Skip to content

Commit 5411465

Browse files
committed
fix elf names
1 parent a8cfc0c commit 5411465

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build_with_current_nightly.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,22 @@ jobs:
5252
cargo update ledger_device_sdk
5353
# if ${{matrix.device}} is 'nanosp', transform to 'nanosplus' for cargo ledger build command
5454
if [ "${{ matrix.device }}" = "nanosp" ]; then
55-
export DEVICE="nanosplus"
55+
DEVICE="nanosplus"
5656
else
57-
export DEVICE="${{ matrix.device }}"
57+
DEVICE="${{ matrix.device }}"
5858
fi
5959
echo "Building for device: $DEVICE"
6060
cargo ledger build $DEVICE
6161
ELF_NAME=$(cargo metadata --manifest-path ./Cargo.toml --no-deps --format-version 1 | jq -r '.packages[] | select(.metadata.ledger != null) | .name')
6262
echo "ELF_NAME=$ELF_NAME" >> $GITHUB_ENV
6363
echo "Built ELF name is $ELF_NAME"
64+
cp target/$DEVICE/release/$ELF_NAME .
6465
6566
- name: Upload binary artifacts
6667
uses: actions/upload-artifact@v4
6768
with:
6869
name: "app_binaries_${{ matrix.device }}"
69-
path: ${{ matrix.device }}/release/${{ env.ELF_NAME }}
70+
path: ${{ env.ELF_NAME }}
7071
if-no-files-found: error
7172

7273
#ragger_tests:

0 commit comments

Comments
 (0)