-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.06 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build & Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
- name: Setup Python and Install distutils
id: py
uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: pip3 install setuptools
env:
PYTHON: '${{ steps.py.outputs.python-path }}'
- name: Set macOS Build Environment
if: ${{ matrix.os == 'macos-latest' }}
run: |
export AR=/usr/bin/ar
- run: npm rebuild
env:
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}'
- run: npm install
env:
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}'
- run: npm test
env:
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}'