Add build pipelines #5
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
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
# See https://stackoverflow.com/questions/69919970/no-module-named-distutils-but-distutils-installed/76691103#76691103 | |
- name: Install dependencies | |
run: pip install setuptools | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
# Node 14 isn't compatible with MacOS 14 ARM64 | |
# TODO: Update app to at least Node 18 | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build app (macOS x64) | |
run: npm run build-mac-x64 | |
- name: Build app (macOS arm64) | |
run: npm run build-mac-arm64 |