Skip to content

Commit 46b2291

Browse files
committed
Enable prebuilt binaries through Github actions
1 parent 3537b67 commit 46b2291

3 files changed

Lines changed: 55 additions & 1 deletion

File tree

.github/workflows/prebuild.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Prebuild Binaries
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
pull_request:
8+
9+
jobs:
10+
prebuild-linux:
11+
name: Linux
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- run: sudo apt-get install g++-multilib
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 12.x
19+
- uses: actions/checkout@v1
20+
- run: npm i
21+
- run: npx prebuild -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 #-u ${{ secrets.GITHUB_TOKEN }}
22+
- run: npx prebuild -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -a ia32 #-u ${{ secrets.GITHUB_TOKEN }}
23+
- run: npx prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -t 12.0.0 -r electron #-u ${{ secrets.GITHUB_TOKEN }}
24+
- run: npx prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -t 12.0.0 -r electron -a ia32 #-u ${{ secrets.GITHUB_TOKEN }}
25+
26+
prebuild-macos:
27+
name: macOS
28+
runs-on: macos-latest
29+
timeout-minutes: 30
30+
steps:
31+
- uses: actions/setup-node@v1
32+
with:
33+
node-version: 12.x
34+
- uses: actions/checkout@v1
35+
- run: npm i
36+
- run: npx prebuild -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 #-u ${{ secrets.GITHUB_TOKEN }}
37+
- run: npx prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -t 12.0.0 -r electron #-u ${{ secrets.GITHUB_TOKEN }}
38+
39+
prebuild-windows:
40+
name: Windows
41+
runs-on: windows-latest
42+
timeout-minutes: 30
43+
steps:
44+
- uses: actions/setup-node@v1
45+
with:
46+
node-version: 12.x
47+
- uses: actions/checkout@v1
48+
- run: npm i
49+
- run: cd node_modules/prebuild ; npm i node-gyp@5
50+
- run: npx prebuild -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 #-u ${{ secrets.GITHUB_TOKEN }} --verbose
51+
- run: npx prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -t 12.0.0 -r electron #-u ${{ secrets.GITHUB_TOKEN }} --verbose

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.lock-wscript
22
/build/
33
/node_modules/
4+
prebuilds
45
heapdump-*.heapsnapshot
56
heapdump-*.log

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
"test": "tap test/test-*"
2121
},
2222
"dependencies": {
23-
"nan": "^2.13.2"
23+
"nan": "^2.13.2",
24+
"prebuild-install": "^5.3.3"
2425
},
2526
"devDependencies": {
27+
"prebuild": "^9.1.1",
2628
"shelljs": "~0.3.0",
2729
"tap": "~0.4.12"
2830
}

0 commit comments

Comments
 (0)