Skip to content

Commit

Permalink
Added NECTO download url to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRuzavin committed Aug 1, 2024
1 parent b894b5f commit c00b5d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/recursiveBuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ name: SDK Recursive Build
on:
workflow_dispatch:
inputs:
build_type:
type: choice
description: Build all or only changed files
options:
- Only changed files
- All files
build_type:
type: choice
description: Build all or only changed files
options:
- Only changed files
- All files
necto_type:
type: choice
description: Live or Development NECTO build
options:
- Development
- Live
pull_request:
branches:
- master
Expand Down Expand Up @@ -49,6 +55,11 @@ jobs:
- name: Install NECTO
run: |
if [[ "${{ github.event.inputs.necto_type }}" == 'Live' ]]; then
export NECTO_DOWNLOAD_URL=${{ secrets.NECTO_LIVE_DOWNLOAD_URL }}
else
export NECTO_DOWNLOAD_URL=${{ secrets.NECTO_DEV_DOWNLOAD_URL }}
fi
python -u scripts/install_necto.py
- name: Run Recursive Build
Expand Down
8 changes: 5 additions & 3 deletions scripts/install_necto.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ def main():
for file in os.listdir(os.getcwd()):
print(file)

print("Step 1: Download NECTO")
url = "https://software-update.mikroe.com/NECTOStudio7/development/necto/linux/NECTOInstaller.zip"
print(url)
url = os.getenv('NECTO_DOWNLOAD_URL')
if 'live' in url:
print("Step 1: Downloading Live NECTOStudio version")
else:
print("Step 1: Downloading Development NECTOStudio version")
urllib.request.urlretrieve(url, "NECTOInstaller.zip")

print("Step 2: Extract installer")
Expand Down

0 comments on commit c00b5d6

Please sign in to comment.