Skip to content

Commit

Permalink
workflows: Update build and publish binaries support matrix
Browse files Browse the repository at this point in the history
- Remove node v15 builds (not compatible with [email protected]
- Use actions/setup-python@v4 to specify Python version: for
compatibility with node-gyp
- Use Ubuntu-22.04 for Node v18 builds
- Upgrade node-pre-gyp dependency
  • Loading branch information
fordN committed Feb 1, 2023
1 parent a80518f commit 7d0a4eb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/publish-native-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,21 @@ jobs:
# (https://github.com/bchr02/node-pre-gyp-github/issues/42)
fail-fast: false
matrix:
node_version: [14, 15, 16, 17, 18]
node_version: [14, 16, 17]
system:
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-18.04
target: x86_64-unknown-linux-gnu
include:
- node_version: 18
system:
os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- node_version: 18
system:
os: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.system.os }}
steps:
- name: Checkout the repo
Expand All @@ -29,6 +38,10 @@ jobs:
uses: actions/[email protected]
with:
node-version: ${{ matrix.node_version }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions packages/indexer-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
},
"dependencies": {
"@graphprotocol/common-ts": "2.0.1",
"@mapbox/node-pre-gyp": "1.0.9",
"cargo-cp-artifact": "0.1.6"
"@mapbox/node-pre-gyp": "1.0.10",
"node-pre-gyp-github": "1.4.4",
"cargo-cp-artifact": "0.1.7"
},
"devDependencies": {
"bs58": "5.0.0",
"eslint": "8.13.0",
"eslint-config-prettier": "8.5.0",
"ethers": "5.7.0",
"jest": "27.5.1",
"node-pre-gyp-github": "1.4.4",
"prettier": "2.6.2"
},
"binary": {
Expand Down
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,21 @@
npmlog "^6.0.2"
write-file-atomic "^4.0.1"

"@mapbox/[email protected]":
version "1.0.10"
resolved "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz#8e6735ccebbb1581e5a7e652244cadc8a844d03c"
integrity sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==
dependencies:
detect-libc "^2.0.0"
https-proxy-agent "^5.0.0"
make-dir "^3.1.0"
node-fetch "^2.6.7"
nopt "^5.0.0"
npmlog "^5.0.1"
rimraf "^3.0.2"
semver "^7.3.5"
tar "^6.1.11"

"@mapbox/[email protected]", "@mapbox/node-pre-gyp@^1.0.0":
version "1.0.9"
resolved "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz"
Expand Down Expand Up @@ -4055,6 +4070,11 @@ [email protected]:
resolved "https://registry.npmjs.org/cargo-cp-artifact/-/cargo-cp-artifact-0.1.6.tgz"
integrity sha512-CQw0doK/aaF7j041666XzuilHxqMxaKkn+I5vmBsd8SAwS0cO5CqVEVp0xJwOKstyqWZ6WK4Ww3O6p26x/Goyg==

[email protected]:
version "0.1.7"
resolved "https://registry.npmjs.org/cargo-cp-artifact/-/cargo-cp-artifact-0.1.7.tgz#1181b9d6e71f00f17c068c05e3cd1b0864783341"
integrity sha512-pxEV9p1on8vu3BOKstVisF9TwMyGKCBRvzaVpQHuU2sLULCKrn3MJWx/4XlNzmG6xNCTPf78DJ7WCGgr2mOzjg==

[email protected]:
version "4.1.0"
resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a"
Expand Down

0 comments on commit 7d0a4eb

Please sign in to comment.