Skip to content

Build apps on given SDK ref #9

Build apps on given SDK ref

Build apps on given SDK ref #9

Workflow file for this run

name: Build apps on given SDK ref
on:
workflow_dispatch:
inputs:
sdk_ref:
type: string
required: false
default: 'master'
run_nanos:
type: boolean
required: false
default: true
run_nanosp:
type: boolean
required: false
default: true
run_nanox:
type: boolean
required: false
default: true
run_stax:
type: boolean
required: false
default: true
jobs:
build-build:
name: Build for all targets
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone Repo
uses: actions/checkout@v3
- name: Setup repos
run: |
python3 scripts/build_and_test/main.py --input_file input_files/input.json
- name: Launch build nanos
if: ${{ inputs.run_nanos }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --nanos --skip_setup --output_file build_nanos.json
- name: Launch build nanosp
if: ${{ inputs.run_nanosp }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --nanosp --skip_setup --output_file build_nanosp.json
- name: Launch build nanox
if: ${{ inputs.run_nanox }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --nanox --skip_setup --output_file build_nanox.json
- name: Launch build stax
if: ${{ inputs.run_stax }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --stax --skip_setup --output_file build_stax.json
- name: Merge output files
run: |
python3 scripts/output_scripts/merge.py --input_pattern "build_*.json" --output_file build_output.json --merge_key "name"
#- name: Push info to DB
# run: |
# python3 scripts/push_db.py --input_file build_output.json
- name: Archive output file
uses: actions/upload-artifact@v3
with:
name: report.json
path: build_output.json
- name: Convert to markdown
run: |
python3 scripts/output_scripts/convert.py --input_file build_output.json --output_file out.md
cat out.md >> $GITHUB_STEP_SUMMARY
- name: Set job status
run: |
python3 scripts/output_scripts/status.py --input_file build_output.json