forked from node-ffi-napi/ref-napi
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.08 KB
/
configure.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
name: CI
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: # macos-latest -> arm64, macos-13 -> x64
os: [windows-latest, ubuntu-latest, macos-latest, macos-13]
#os: [macos-13, macos-latest]
#os: [macos-latest]
# < 16 not available in testing images
node-version: [22, 20, 18]
#node-version: [22]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies and test
shell: bash
run: |
npm install
npm test
- name: prebuild
shell: bash
run: |
npm run prebuild
- uses: actions/upload-artifact@v4
with:
name: ref-napi-prebuild-${{ matrix.os }}-${{ matrix.node-version }}
path: prebuilds/ # or path/to/artifact