Skip to content

Commit

Permalink
Enable prebuilt binaries through Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertzguy committed Apr 4, 2021
1 parent 3537b67 commit 46b2291
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Prebuild Binaries

on:
push:
tags:
- "v*"
pull_request:

jobs:
prebuild-linux:
name: Linux
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- run: sudo apt-get install g++-multilib
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npm i
- 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 }}
- 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 }}
- 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 }}
- 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 }}

prebuild-macos:
name: macOS
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npm i
- 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 }}
- 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 }}

prebuild-windows:
name: Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npm i
- run: cd node_modules/prebuild ; npm i node-gyp@5
- 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
- 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.lock-wscript
/build/
/node_modules/
prebuilds
heapdump-*.heapsnapshot
heapdump-*.log
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
"test": "tap test/test-*"
},
"dependencies": {
"nan": "^2.13.2"
"nan": "^2.13.2",
"prebuild-install": "^5.3.3"
},
"devDependencies": {
"prebuild": "^9.1.1",
"shelljs": "~0.3.0",
"tap": "~0.4.12"
}
Expand Down

0 comments on commit 46b2291

Please sign in to comment.