Skip to content

Commit be5c52c

Browse files
committed
Merge artifact test 2
1 parent 9fd97dd commit be5c52c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build_with_current_nightly.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,30 @@ jobs:
5656
else
5757
DEVICE="${{ matrix.device }}"
5858
fi
59+
echo "DEVICE=$DEVICE" >> $GITHUB_ENV
5960
echo "Building for device: $DEVICE"
6061
cargo ledger build $DEVICE
6162
ELF_NAME=$(cargo metadata --manifest-path ./Cargo.toml --no-deps --format-version 1 | jq -r '.packages[] | select(.metadata.ledger != null) | .name')
6263
echo "ELF_NAME=$ELF_NAME" >> $GITHUB_ENV
6364
echo "Built ELF name is $ELF_NAME"
64-
cp target/$DEVICE/release/$ELF_NAME .
6565
6666
- name: Upload binary artifacts
6767
uses: actions/upload-artifact@v4
6868
with:
6969
name: "app_elf_${{ matrix.device }}"
70-
path: ${{ env.ELF_NAME }}
70+
path: target/${{ env.DEVICE }}/release/${{ env.ELF_NAME }}
7171
if-no-files-found: error
7272

7373
merge_artifacts:
7474
name: Merge build artifacts
7575
needs: build_with_last_nightly
7676
runs-on: ubuntu-22.04
7777
steps:
78-
- uses: actions/upload-artifact/merge@v4
78+
- name: Merge artifacts
79+
uses: actions/upload-artifact/merge@v4
80+
with:
81+
pattern: "app_elf_*"
82+
7983

8084
#ragger_tests:
8185
# name: Run ragger tests using the reusable workflow

0 commit comments

Comments
 (0)