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

Commit

Permalink
Merge pull request #120 from LedgerHQ/update-prebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
MortalKastor authored Sep 30, 2021
2 parents 4161a0b + 8e9fb6f commit 4fc0b85
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 205 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, macos-latest, windows-2016]
os: [ubuntu-20.04, macos-latest, windows-2019]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@master
Expand All @@ -25,15 +25,15 @@ jobs:
if: runner.os == 'Linux'
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 700 --slave /usr/bin/g++ g++ /usr/bin/g++-9
- name: prebuild for node 12
run: npx node-pre-gyp configure rebuild package --target=12.16.0
run: npx @mapbox/node-pre-gyp configure rebuild package --target=12.16.0
- name: clean
run: npx node-pre-gyp clean
run: npx @mapbox/node-pre-gyp clean
- name: prebuild for node 14
run: npx node-pre-gyp configure rebuild package --target=14.17.0
run: npx @mapbox/node-pre-gyp configure rebuild package --target=14.17.0
- name: clean
run: npx node-pre-gyp clean
- name: prebuild for electron 11.2
run: npx node-pre-gyp configure build package --runtime=electron --target=11.2.0 --build-from-source --dist-url=https://electronjs.org/headers
run: npx @mapbox/node-pre-gyp clean
- name: prebuild for electron 13.1
run: npx @mapbox/node-pre-gyp configure build package --runtime=electron --target=13.1.0 --build-from-source --dist-url=https://electronjs.org/headers
- name: publish
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/test-prebuild.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: core-prebuild
on: [push, pull_request]
on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
prebuild-for-platform:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, macos-latest, windows-2016]
os: [ubuntu-20.04, macos-latest, windows-2019]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@master
Expand All @@ -23,12 +29,12 @@ jobs:
if: runner.os == 'Linux'
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 700 --slave /usr/bin/g++ g++ /usr/bin/g++-9
- name: prebuild for node 12
run: npx node-pre-gyp configure rebuild package --target=12.16.0
run: npx @mapbox/node-pre-gyp configure rebuild package --target=12.16.0
- name: clean
run: npx node-pre-gyp clean
run: npx @mapbox/node-pre-gyp clean
- name: prebuild for node 14
run: npx node-pre-gyp configure rebuild package --target=14.17.0
run: npx @mapbox/node-pre-gyp configure rebuild package --target=14.17.0
- name: clean
run: npx node-pre-gyp clean
- name: prebuild for electron 11.2
run: npx node-pre-gyp configure build package --runtime=electron --target=11.2.0 --build-from-source --dist-url=https://electronjs.org/headers
run: npx @mapbox/node-pre-gyp clean
- name: prebuild for electron 13.1
run: npx @mapbox/node-pre-gyp configure build package --runtime=electron --target=13.1.0 --build-from-source --dist-url=https://electronjs.org/headers
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
],
"license": "MIT",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.5",
"bindings": "1.5.0",
"nan": "^2.14.2",
"node-gyp": "^8.0.0",
"node-pre-gyp": "^0.17.0",
"node-pre-gyp-github": "^1.4.3"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 4fc0b85

Please sign in to comment.