Skip to content

Commit

Permalink
[Rust] Use bash commands to rename binary for Ragger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Feb 13, 2024
1 parent da14009 commit 7af5ada
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ jobs:
BUILD_DEVICE_NAME="$(echo ${{ matrix.device }} | sed 's/nanosp/nanosplus/')" && \
BIN_DIR_NAME="$(echo ${{ matrix.device }} | sed 's/nanosp/nanos2/')" && \
cd ${{ needs.call_get_app_metadata.outputs.build_directory }} && \
cargo ledger build ${BUILD_DEVICE_NAME} -- -Zunstable-options --out-dir=./build/${BIN_DIR_NAME}/bin/ && \
cargo ledger build ${BUILD_DEVICE_NAME} && \
APP_NAME=$(grep -E '^\s*name\s*=\s*' Cargo.toml | head -n 1 | awk -F'["]' '{print $2}') && \
mv ./build/${BIN_DIR_NAME}/bin/${APP_NAME} ./build/${BIN_DIR_NAME}/bin/app.elf
mkdir -p ./build/${BIN_DIR_NAME}/bin && \
cp ./target/${BUILD_DEVICE_NAME}/release/${APP_NAME} ./build/${BIN_DIR_NAME}/bin/app.elf && \
echo "Binary ${APP_NAME} copied as ./build/${BIN_DIR_NAME}/bin/app.elf"

Check failure on line 91 in .github/workflows/reusable_build.yml

View workflow job for this annotation

GitHub Actions / Check yaml files

91:1 [trailing-spaces] trailing spaces
else
eval "BOLOS_SDK=\$$(echo ${{ matrix.device }} | tr [:lower:] [:upper:])_SDK" && \
echo "BOLOS_SDK value will be: ${BOLOS_SDK}" && \
Expand Down

0 comments on commit 7af5ada

Please sign in to comment.