-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (93 loc) · 3.19 KB
/
_build_devices.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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
pull_request:
push:
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/test_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/test_input.json --build --nanos --skip_setup --output_file build_input.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/test_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/test_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/test_input.json --build --stax --skip_setup --output_file build_stax.json
- name: Merge output files
run: |
python3 scripts/output_scripts/merge.py --input_files build_nanos.json build_nanosp.json build_nanox.json build_stax.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