Skip to content

disable workflow on PR event #8

disable workflow on PR event

disable workflow on PR event #8

Workflow file for this run

name: Build all Rust apps
on:
workflow_dispatch:
inputs:
sdk_branch:
type: string
required: false
default: ''
# pull_request:
env:
repo_list: '
{\"repo_name\":[
\"app-mobilecoin\",
]}
'
jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:

Check failure on line 24 in .github/workflows/build_all_apps.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_all_apps.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
- id: set-matrix
run: echo "matrix=${{ env.repo_list }}" >> $GITHUB_OUTPUT
test-build:
name: Build for all targets
needs: [prepare-matrix]
strategy:
fail-fast: false
matrix:
${{ fromJSON(needs.prepare-matrix.outputs.matrix) }}
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone App
uses: actions/checkout@v4
with:
repository: LedgerHQ/${{ matrix.repo_name }}
submodules: true
ref: 'feat/update_nightly'
path: ${{ matrix.repo_name }}
- 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
- name: Build NanoS
if: ${{ env.build_nanos == 'nanos' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano S"
# cargo ledger build nanos
- name: Build NanoX
if: ${{ env.build_nanox == 'nanox' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano X"
# cargo ledger build nanox
- name: Build NanoS+
if: ${{ env.build_nanosplus == 'nanosplus' }}
run: |
cd ${{ matrix.repo_name }}
cd ${{ env.build_path }}
echo "Build for Nano S+"
# cargo ledger build nanosplus