Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Oct 10, 2023
1 parent 04956cf commit e184bc5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/_build_nanos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build apps on given SDK ref

on:
schedule:
- cron: '32 16 * * *'

workflow_dispatch:
inputs:
sdk_ref:
Expand All @@ -25,7 +28,7 @@ jobs:
- name: Launch build 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
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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_build_nanosp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Launch build 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
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref || 'master' }} --input_file input_files/input.json --build --nanosp --skip_setup --output_file build_nanosp.json
#- name: Push info to DB
# run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/_build_nanox.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build apps on given SDK ref

on:
schedule:
- cron: '32 14 * * *'

workflow_dispatch:
inputs:
sdk_ref:
Expand All @@ -25,7 +28,7 @@ jobs:
- name: Launch build 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
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref || 'master' }} --input_file input_files/input.json --build --nanox --skip_setup --output_file build_nanox.json
#- name: Push info to DB
# run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/_build_stax.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Build apps on given SDK ref

on:
schedule:
- cron: '32 14 * * *'

workflow_dispatch:
inputs:
sdk_ref:
type: string
required: false
default: 'master'


jobs:
build-stax:
Expand All @@ -25,7 +29,7 @@ jobs:
- name: Launch build 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
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref || 'master' }} --input_file input_files/input.json --build --stax --skip_setup --output_file build_stax.json
#- name: Push info to DB
# run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/check_outdated_build_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
- name: Build db
run: |
python3 scripts/create_app_list/main.py --full_output_file out.json --access_token ${{ secrets.GH_ACCESS_TOKEN }}
- name: Upload file
uses: actions/upload-artifact@v3
with:
name: out.json
path: out.json
if-no-files-found: error
- name: Compare Files
run: |
# Compare two files using diff
Expand Down
5 changes: 4 additions & 1 deletion scripts/build_and_test/build_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ def build_all_variants(target: str, sdk_path: str, variant_param: str, variant_l
def build_device(device: Device, variant_param: str, app_build_path: Path, sdk_path: Path, app_json: dict):
blacklist = app_json.get("build_blacklist", "[]")

if not device.selected:
return

if device.model_name in blacklist:
return "Skipped"

variants = app_json.get(f"variants_{device.model_name}", [])
variant_output = {}
if device.selected and len(variants) > 0:
if len(variants) > 0:
variant_output = build_all_variants(device.target_name, sdk_path, variant_param, variants, app_build_path)

return variant_output
Expand Down

0 comments on commit e184bc5

Please sign in to comment.