Add build pipelines #9
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] | |
# FIXME: This is a workaround since v14 for nodejs is no available by default for ARM64 | |
# The correct fix is to upgrade to nodejs v16 or higher | |
- name: Install NVM | |
run: | | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
- name: Install node version | |
run: nvm install 14.17.0 | |
- name: Install correct NPM version | |
run: npm install -g npm@8 | |
# - name: Use Node.js | |
# uses: actions/[email protected] | |
# with: | |
# 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 |