-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.82 KB
/
_build_nanos_test.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
name: Build apps on given SDK ref
on:
schedule:
- cron: '32 16 * * *'
workflow_dispatch:
inputs:
sdk_ref:
type: string
required: false
default: 'master'
jobs:
build-nanos:
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_test.json
- name: Launch build nanos
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref || 'master' }} --input_file input_files/input.json --build --nanos --skip_setup --output_file build_nanos.json
#- 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_nanos.json
- name: Convert to markdown
run: |
python3 scripts/output_scripts/convert.py --input_file build_nanos.json --output_file out.md --key build
cat out.md >> $GITHUB_STEP_SUMMARY
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"key": "value",
"foo": "bar"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Set job status
run: |
python3 scripts/output_scripts/status.py --input_file build_nanos.json --key build