-
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
8331f47
commit ab05e0b
Showing
2 changed files
with
171 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,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 |
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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
[ | ||
{ | ||
"name": "app-acala", | ||
"owner": "Zondax", | ||
"ref": "develop", | ||
"url": "https://github.com/LedgerHQ/app-acala", | ||
"build_path": "app", | ||
"test_blacklist": [ | ||
"nanos", | ||
"nanosp", | ||
"nanox", | ||
"stax" | ||
], | ||
"variant_param": "COIN", | ||
"variants_nanos": [ | ||
"ACA", | ||
"ACA_XL" | ||
], | ||
"variants_nanox": [ | ||
"ACA" | ||
], | ||
"variants_nanosp": [ | ||
"ACA" | ||
] | ||
}, | ||
{ | ||
"name": "app-aergo", | ||
"owner": "aergoio", | ||
"ref": "develop", | ||
"url": "https://github.com/LedgerHQ/app-aergo", | ||
"test_blacklist": [ | ||
"nanos", | ||
"nanosp", | ||
"nanox", | ||
"stax" | ||
], | ||
"variant_param": "COIN", | ||
"variants_nanos": [ | ||
"AERGO" | ||
], | ||
"variants_nanox": [ | ||
"AERGO" | ||
], | ||
"variants_nanosp": [ | ||
"AERGO" | ||
], | ||
"variants_stax": [ | ||
"AERGO" | ||
] | ||
}, | ||
{ | ||
"name": "app-aeternity", | ||
"owner": "LedgerHQ", | ||
"ref": "master", | ||
"url": "https://github.com/LedgerHQ/app-aeternity", | ||
"variant_param": "COIN", | ||
"variants_nanos": [ | ||
"aeternity" | ||
], | ||
"variants_nanox": [ | ||
"aeternity" | ||
], | ||
"variants_nanosp": [ | ||
"aeternity" | ||
], | ||
"variants_stax": [ | ||
"aeternity" | ||
] | ||
}, | ||
{ | ||
"name": "app-age", | ||
"owner": "LedgerHQ", | ||
"ref": "main", | ||
"url": "https://github.com/LedgerHQ/app-age", | ||
"build_blacklist": [ | ||
"nanos", | ||
"nanosp", | ||
"nanox", | ||
"stax" | ||
], | ||
"test_blacklist": [ | ||
"nanos", | ||
"nanosp", | ||
"nanox", | ||
"stax" | ||
] | ||
}, | ||
{ | ||
"name": "app-boilerplate", | ||
"owner": "aionnetwork", | ||
"ref": "master", | ||
"url": "https://github.com/LedgerHQ/app-boilerplate", | ||
"test_dir": "tests", | ||
"variant_param": "COIN", | ||
"variants_nanos": [ | ||
"BOL" | ||
], | ||
"variants_nanox": [ | ||
"BOL" | ||
], | ||
"variants_nanosp": [ | ||
"BOL" | ||
], | ||
"variants_stax": [ | ||
"BOL" | ||
] | ||
} | ||
] |