Skip to content

Commit

Permalink
feat: added stax and flex to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilaneDen committed Nov 27, 2024
1 parent 5ca1d9a commit 2293022
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 59 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
name: "nanox"
- sdk: "$NANOSP_SDK"
name: "nanosp"
- sdk: "$STAX_SDK"
name: "stax"
- sdk: "$FLEX_SDK"
name: "flex"

runs-on: ubuntu-latest
container:
Expand All @@ -47,6 +51,10 @@ jobs:
name: "nanox"
- sdk: "$NANOSP_SDK"
name: "nanosp"
- sdk: "$STAX_SDK"
name: "stax"
- sdk: "$FLEX_SDK"
name: "flex"

runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -83,6 +91,10 @@ jobs:
name: "nanox"
- sdk: "$NANOSP_SDK"
name: "nanosp"
- sdk: "$STAX_SDK"
name: "stax"
- sdk: "$FLEX_SDK"
name: "flex"

runs-on: ubuntu-latest
container:
Expand Down
118 changes: 59 additions & 59 deletions tests/build_local_test_elfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,81 +11,81 @@ mkdir -p elfs
# move to repo's root to build apps
cd ..

echo "*Building elfs for Nano S..."
export BOLOS_SDK="$NANOS_SDK"
# echo "*Building elfs for Nano S..."
# export BOLOS_SDK="$NANOS_SDK"

echo "**Building app-paraswap for Nano S..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_nanos.elf"

echo "**Building app-ethereum for Nano S..."
cd $APP_ETHEREUM || exit
make clean
make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
cd - || exit
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanos.elf"


echo "*Building elfs for Nano X..."
export BOLOS_SDK="$NANOX_SDK"
# echo "**Building app-paraswap for Nano S..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_nanos.elf"

echo "**Building app-paraswap for Nano X..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_nanox.elf"
# echo "**Building app-ethereum for Nano S..."
# cd $APP_ETHEREUM || exit
# make clean
# make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
# cd - || exit
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanos.elf"

echo "**Building app-ethereum for Nano X..."
cd $APP_ETHEREUM || exit
make clean
make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
cd - || exit
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanox.elf"

echo "*Building elfs for Nano S+..."
export BOLOS_SDK="$NANOSP_SDK"
# echo "*Building elfs for Nano X..."
# export BOLOS_SDK="$NANOX_SDK"

echo "**Building app-1inch for Nano S+..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_nanosp.elf"
# echo "**Building app-paraswap for Nano X..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_nanox.elf"

echo "**Building app-ethereum for Nano S+..."
cd $APP_ETHEREUM
make clean BOLOS_SDK=$NANOSP_SDK
make -j DEBUG=1 BOLOS_SDK=$NANOSP_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
cd -
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanosp.elf"
# echo "**Building app-ethereum for Nano X..."
# cd $APP_ETHEREUM || exit
# make clean
# make -j DEBUG=1 CHAIN=ethereum BYPASS_SIGNATURES=1 ALLOW_DATA=1
# cd - || exit
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanox.elf"

# echo "*Building elfs for Flex..."
# export BOLOS_SDK="$FLEX_SDK"
# echo "*Building elfs for Nano S+..."
# export BOLOS_SDK="$NANOSP_SDK"

# echo "**Building app-1inch for Flex..."
# echo "**Building app-1inch for Nano S+..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_flex.elf"
# cp bin/app.elf "tests/elfs/plugin_nanosp.elf"

# echo "**Building app-ethereum for Flex..."
# echo "**Building app-ethereum for Nano S+..."
# cd $APP_ETHEREUM
# make clean BOLOS_SDK=$FLEX_SDK
# make -j DEBUG=1 BOLOS_SDK=$FLEX_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
# make clean BOLOS_SDK=$NANOSP_SDK
# make -j DEBUG=1 BOLOS_SDK=$NANOSP_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
# cd -
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_flex.elf"
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_nanosp.elf"

echo "*Building elfs for Flex..."
export BOLOS_SDK="$FLEX_SDK"

# echo "*Building elfs for Stax..."
# export BOLOS_SDK="$STAX_SDK"
echo "**Building app-1inch for Flex..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_flex.elf"

# echo "**Building app-1inch for Stax..."
# make clean
# make -j DEBUG=1
# cp bin/app.elf "tests/elfs/plugin_stax.elf"
echo "**Building app-ethereum for Flex..."
cd $APP_ETHEREUM
make clean BOLOS_SDK=$FLEX_SDK
make -j DEBUG=1 BOLOS_SDK=$FLEX_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
cd -
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_flex.elf"

# echo "**Building app-ethereum for Stax..."
# cd $APP_ETHEREUM
# make clean BOLOS_SDK=$STAX_SDK
# make -j DEBUG=1 BOLOS_SDK=$STAX_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
# cd -
# cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_stax.elf"

echo "*Building elfs for Stax..."
export BOLOS_SDK="$STAX_SDK"

echo "**Building app-1inch for Stax..."
make clean
make -j DEBUG=1
cp bin/app.elf "tests/elfs/plugin_stax.elf"

echo "**Building app-ethereum for Stax..."
cd $APP_ETHEREUM
make clean BOLOS_SDK=$STAX_SDK
make -j DEBUG=1 BOLOS_SDK=$STAX_SDK CHAIN=ethereum BYPASS_SIGNATURES=1
cd -
cp "${APP_ETHEREUM}/bin/app.elf" "tests/elfs/ethereum_stax.elf"

echo "done"

0 comments on commit 2293022

Please sign in to comment.