Skip to content

Commit 2dd81fa

Browse files
committed
yml file updated
1 parent 214ebbd commit 2dd81fa

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
11

2+
name: Build Node.js Addon
3+
4+
on:
5+
push:
6+
branches: [ main, 0.0.10 ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build-windows:
12+
runs-on: windows-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build native addon
25+
run: npm run build
26+
27+
- name: Test
28+
run: node test.js
29+
30+
build-macos:
31+
runs-on: macos-latest
32+
if: false
33+
steps:
34+
- name: Skip macOS build
35+
run: echo "Skipping macOS build as code is Windows-specific"
36+
37+
build-linux:
38+
runs-on: ubuntu-latest
39+
if: false
40+
steps:
41+
- name: Skip Linux build
42+
run: echo "Skipping Linux build as code is Windows-specific"

0 commit comments

Comments
 (0)