Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.

Commit 4fc0b85

Browse files
authored
Merge pull request #120 from LedgerHQ/update-prebuilds
2 parents 4161a0b + 8e9fb6f commit 4fc0b85

File tree

4 files changed

+78
-205
lines changed

4 files changed

+78
-205
lines changed

.github/workflows/prebuild.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-16.04, macos-latest, windows-2016]
11+
os: [ubuntu-20.04, macos-latest, windows-2019]
1212
steps:
1313
- uses: actions/checkout@v1
1414
- uses: actions/setup-node@master
@@ -25,15 +25,15 @@ jobs:
2525
if: runner.os == 'Linux'
2626
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 700 --slave /usr/bin/g++ g++ /usr/bin/g++-9
2727
- name: prebuild for node 12
28-
run: npx node-pre-gyp configure rebuild package --target=12.16.0
28+
run: npx @mapbox/node-pre-gyp configure rebuild package --target=12.16.0
2929
- name: clean
30-
run: npx node-pre-gyp clean
30+
run: npx @mapbox/node-pre-gyp clean
3131
- name: prebuild for node 14
32-
run: npx node-pre-gyp configure rebuild package --target=14.17.0
32+
run: npx @mapbox/node-pre-gyp configure rebuild package --target=14.17.0
3333
- name: clean
34-
run: npx node-pre-gyp clean
35-
- name: prebuild for electron 11.2
36-
run: npx node-pre-gyp configure build package --runtime=electron --target=11.2.0 --build-from-source --dist-url=https://electronjs.org/headers
34+
run: npx @mapbox/node-pre-gyp clean
35+
- name: prebuild for electron 13.1
36+
run: npx @mapbox/node-pre-gyp configure build package --runtime=electron --target=13.1.0 --build-from-source --dist-url=https://electronjs.org/headers
3737
- name: publish
3838
env:
3939
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-prebuild.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
name: core-prebuild
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
39

410
jobs:
511
prebuild-for-platform:
612
runs-on: ${{ matrix.os }}
713
strategy:
814
matrix:
9-
os: [ubuntu-16.04, macos-latest, windows-2016]
15+
os: [ubuntu-20.04, macos-latest, windows-2019]
1016
steps:
1117
- uses: actions/checkout@v1
1218
- uses: actions/setup-node@master
@@ -23,12 +29,12 @@ jobs:
2329
if: runner.os == 'Linux'
2430
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 700 --slave /usr/bin/g++ g++ /usr/bin/g++-9
2531
- name: prebuild for node 12
26-
run: npx node-pre-gyp configure rebuild package --target=12.16.0
32+
run: npx @mapbox/node-pre-gyp configure rebuild package --target=12.16.0
2733
- name: clean
28-
run: npx node-pre-gyp clean
34+
run: npx @mapbox/node-pre-gyp clean
2935
- name: prebuild for node 14
30-
run: npx node-pre-gyp configure rebuild package --target=14.17.0
36+
run: npx @mapbox/node-pre-gyp configure rebuild package --target=14.17.0
3137
- name: clean
32-
run: npx node-pre-gyp clean
33-
- name: prebuild for electron 11.2
34-
run: npx node-pre-gyp configure build package --runtime=electron --target=11.2.0 --build-from-source --dist-url=https://electronjs.org/headers
38+
run: npx @mapbox/node-pre-gyp clean
39+
- name: prebuild for electron 13.1
40+
run: npx @mapbox/node-pre-gyp configure build package --runtime=electron --target=13.1.0 --build-from-source --dist-url=https://electronjs.org/headers

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
],
4141
"license": "MIT",
4242
"dependencies": {
43+
"@mapbox/node-pre-gyp": "^1.0.5",
4344
"bindings": "1.5.0",
4445
"nan": "^2.14.2",
4546
"node-gyp": "^8.0.0",
46-
"node-pre-gyp": "^0.17.0",
4747
"node-pre-gyp-github": "^1.4.3"
4848
},
4949
"devDependencies": {

0 commit comments

Comments
 (0)