Skip to content

Commit

Permalink
Update workflow to be able to build some apps on Stax
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejoigny-ledger committed Nov 21, 2023
1 parent ee65eb2 commit a15d393
Showing 1 changed file with 77 additions and 3 deletions.
80 changes: 77 additions & 3 deletions .github/workflows/build_all_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,73 @@ env:
\"app-thorchain\" : \"./app\" ,
\"app-xxnetwork\" : \"./app\" }
"

build_for_stax_list: '
{\"app-solana\",
\"app-hedera\",
\"app-acala\",
\"app-bitcoin-new\",
\"app-mina\",
\"app-tezos\",
\"app-plugin-nested\",
\"app-plugin-staderlabs\",
\"app-plugin-lido\",
\"app-plugin-paraswap\",
\"app-plugin-1inch\",
\"app-plugin-yearn\",
\"app-plugin-quickswap\",
\"app-plugin-cometh\",
\"app-plugin-stakedao\",
\"app-plugin-ricochet\",
\"app-plugin-poap\",
\"app-plugin-angle\",
\"app-plugin-kiln\",
\"app-plugin-alkemi\",
\"app-plugin-nft\",
\"app-plugin-harvest\",
\"app-plugin-opensea-new\",
\"app-plugin-rarible\",
\"app-plugin-cbridge\",
\"app-plugin-ribbon\",
\"app-plugin-art-blocks\",
\"app-plugin-boilerplate\",
\"app-stellar\",
\"app-exchange\",
\"app-ssh-agent\",
\"app-neo\",
\"app-boilerplate\",
\"app-xrp\",
\"app-recovery-check\",
\"app-near\",
\"app-nervos\",
\"app-cardano\",
\"app-kusama\",
\"app-polymesh\",
\"app-monero\",
\"app-celo-spender\",
\"app-cosmos\",
\"app-statemine\",
\"app-polkadot\",
\"app-zilliqa\",
\"app-nem\",
\"app-eos\",
\"app-u2f\",
\"app-fantom\",
\"app-multiversx\",
\"app-symbol\",
\"app-vechain\",
\"app-decred\",
\"app-cryptocom\",
\"app-icp\",
\"app-tron\",
\"app-bitcoin\",
\"app-flow\",
\"app-passwords\",
\"app-secret\",
\"app-binance\"}
'
# App-Ethereum to add in the previous list

repo_list: '
{\"repo_name\":[
\"app-velas\",
Expand Down Expand Up @@ -138,7 +205,6 @@ env:
\"app-filecoin\",
\"app-algorand\",
\"app-dock\",
\"app-plugin-opensea\",
\"app-ton-new\",
\"app-tron\",
\"app-khala\",
Expand Down Expand Up @@ -262,6 +328,14 @@ jobs:
build_path=$(echo '${{ env.build_path_list}}' | sed -n 's/.*"${{ matrix.repo_name }}"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
echo "build_path=$build_path" >> $GITHUB_ENV
- name: Build for Stax
run: |
if echo "${{ env.build_for_stax_list }}" | grep -q "${{ matrix.repo_name }}" || [[ "${{ inputs.run_stax }}" ]]; then
echo "build_for_stax=true" >> $GITHUB_ENV
else
echo "build_for_stax=false" >> $GITHUB_ENV
fi
- name: Clone SDK
uses: actions/checkout@v3
with:
Expand All @@ -282,9 +356,9 @@ jobs:
run: |
[ -n '${{ env.build_path }}' ] && cd ${{ env.build_path }}
TARGET=nanos2 BOLOS_SDK=$GITHUB_WORKSPACE/sdk make
- name: Build Stax
if: ${{ inputs.run_stax == true }}
if: ${{ env.build_for_stax == 'true' }}
run: |
[ -n '${{ env.build_path }}' ] && cd ${{ env.build_path }}
TARGET=stax BOLOS_SDK=$GITHUB_WORKSPACE/sdk make

0 comments on commit a15d393

Please sign in to comment.