2021-09-03 22:59:15 +00:00
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
2021-09-03 23:01:43 +00:00
name : MacOS Build
2021-09-03 22:59:15 +00:00
on :
push :
2021-09-03 23:01:43 +00:00
branches : [ dev, master ]
2021-09-03 22:59:15 +00:00
pull_request :
branches : [ dev ]
jobs :
build :
2021-09-03 23:12:41 +00:00
runs-on : macos-11
2021-09-03 22:59:15 +00:00
2021-09-04 00:09:22 +00:00
env :
CSC_IDENTITY_AUTO_DISCOVERY : false
2021-09-04 00:35:33 +00:00
USE_HARD_LINKS : false
2021-09-04 00:09:22 +00:00
2021-09-03 22:59:15 +00:00
strategy :
matrix :
node-version : [ 12. x]
steps :
- uses : actions/checkout@v2
with :
submodules : recursive
- name : Use Node.js ${{ matrix.node-version }}
uses : actions/setup-node@v2
with :
node-version : ${{ matrix.node-version }}
cache : 'npm'
2021-09-03 23:12:41 +00:00
2021-09-04 00:35:33 +00:00
- run : brew install boost mpv ninja
2021-09-03 23:12:41 +00:00
2021-09-03 23:01:43 +00:00
- run : npm install
2021-09-03 23:12:41 +00:00
- run : npm run collect:dylibs
2021-09-03 22:59:15 +00:00
- run : npm run dist:mac
- run : npm test
- name : Download a Build Artifact
uses : actions/download-artifact@v2.0.10
with :
# Destination path
path : dist/ # optional