Updated CI

This commit is contained in:
Patrick Fic
2025-04-01 15:41:27 -07:00
parent 50cc7691fa
commit db81297c49

View File

@@ -27,17 +27,32 @@ jobs:
command: | command: |
choco install python visualstudio2022-workload-vctools -y choco install python visualstudio2022-workload-vctools -y
python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade pip setuptools wheel
# look for existing cache and restore if found
- restore_cache:
key: bsp-win-deps-{{ checksum "package-lock.json" }}
# install dependencies
- run:
name: install dependencies
command: npm install
- run: - run:
name: Install NPM Packages name: Install NPM Packages
command: npm install command: npm install
- save_cache:
key: bsp-win-deps-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run: - run:
name: Build Electron App for Windows name: Build Electron App for Windows
environment: environment:
AZURE_TENANT_ID: << parameters.tenantID >> AZURE_TENANT_ID: << parameters.tenantID >>
AZURE_CLIENT_ID: << parameters.clientID >> AZURE_CLIENT_ID: << parameters.clientID >>
AZURE_CLIENT_SECRET: << parameters.clientSecret >> AZURE_CLIENT_SECRET: << parameters.clientSecret >>
command: npm run build:win command: |
$env:AZURE_TENANT_ID = << parameters.tenantID >>
$env:AZURE_CLIENT_ID = << parameters.clientID >>
$env:AZURE_CLIENT_SECRET = << parameters.clientSecret >>
npm run build:win
# - store_artifacts: # - store_artifacts:
# path: .\dist # path: .\dist