-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7024e27
commit 82e8028
Showing
1 changed file
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,39 +19,44 @@ jobs: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest | ||
|
||
steps: | ||
- name: Clone Repo | ||
uses: actions/checkout@v3 | ||
#- 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: 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: 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: 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: 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: 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 | ||
if: always() | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
# This data can be any valid JSON from a previous step in the GitHub Action | ||
payload-file-path: "build_nanos.json" | ||
#payload-file-path: "build_nanos.json" | ||
payload: | | ||
{ | ||
"key": "value", | ||
"foo": "bar" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
|