Skip to content

Commit

Permalink
fix yaml indent
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Jan 25, 2024
1 parent d652834 commit e1ff478
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/build_all_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
repo_list: '
{\"repo_name\":[
\"app-mobilecoin\",
\"app-mobilecoin\",
]}
'

Expand All @@ -23,7 +24,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
run: echo "matrix=${{ env.repo_list }}" >> $GITHUB_OUTPUT
run: echo "matrix=${{ env.repo_list }}" >> $GITHUB_OUTPUT

test-build:
name: Build for all targets
Expand All @@ -46,37 +47,37 @@ jobs:

- name: Build Path and Targets
run: |
cargo +$RUST_STABLE install toml-cli
cd ${{ matrix.repo_name }}
build_path=$(toml get ledger_app.toml app.build_directory)
echo "build_path=$build_path" >> $GITHUB_ENV
build_nanos=$(toml get ledger_app.toml app.devices | grep -o "\"nanos\"" | awk -F '"' '{print $2}')
echo "Build Nano S => $build_nanos"
build_nanosplus=$(toml get ledger_app.toml app.devices | grep -o "\"nanos+\"" | awk -F '"' '{print $2}' | sed 's/+/plus/')
echo "Build Nano S+ => $build_nanosplus"
build_nanox=$(toml get ledger_app.toml app.devices | grep -o "\"nanox\"" | awk -F '"' '{print $2}')
echo "Build Nano X => $build_nanox"
echo "build_nanos=$build_nanos" >> $GITHUB_ENV
echo "build_nanosplus=$build_nanosplus" >> $GITHUB_ENV
echo "build_nanox=$build_nanox" >> $GITHUB_ENV
cargo +$RUST_STABLE install toml-cli
cd ${{ matrix.repo_name }}
build_path=$(toml get ledger_app.toml app.build_directory)
echo "build_path=$build_path" >> $GITHUB_ENV
build_nanos=$(toml get ledger_app.toml app.devices | grep -o "\"nanos\"" | awk -F '"' '{print $2}')
echo "Build Nano S => $build_nanos"
build_nanosplus=$(toml get ledger_app.toml app.devices | grep -o "\"nanos+\"" | awk -F '"' '{print $2}' | sed 's/+/plus/')
echo "Build Nano S+ => $build_nanosplus"
build_nanox=$(toml get ledger_app.toml app.devices | grep -o "\"nanox\"" | awk -F '"' '{print $2}')
echo "Build Nano X => $build_nanox"
echo "build_nanos=$build_nanos" >> $GITHUB_ENV
echo "build_nanosplus=$build_nanosplus" >> $GITHUB_ENV
echo "build_nanox=$build_nanox" >> $GITHUB_ENV
- name: Build NanoS
if: ${{ env.build_nanos == 'nanos' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano S"
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano S"
- name: Build NanoX
if: ${{ env.build_nanox == 'nanox' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano X"
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano X"
- name: Build NanoS+
if: ${{ env.build_nanosplus == 'nanosplus' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano S+"s
if: ${{ env.build_nanosplus == 'nanosplus' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano S+"

0 comments on commit e1ff478

Please sign in to comment.