Skip to content

Merge pull request #307 from HASEL-UZH/dependabot/npm_and_yarn/src/el… #156

Merge pull request #307 from HASEL-UZH/dependabot/npm_and_yarn/src/el…

Merge pull request #307 from HASEL-UZH/dependabot/npm_and_yarn/src/el… #156

Workflow file for this run

name: Build
on:
push:
branches:
- main
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_VERSION: 18
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: src/electron
strategy:
matrix:
os: [ macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: |
npm ci
- name: Build windows
run: npm run build
if: matrix.os == 'windows-latest'
- name: Build macos
run: npm run build
if: matrix.os == 'macos-latest'
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}