Skip to content

Commit

Permalink
Merge pull request #94 from piotr-roslaniec/node-lts
Browse files Browse the repository at this point in the history
Fix NodeJS compatibilty across different versions
  • Loading branch information
piotr-roslaniec authored Jun 12, 2024
2 parents d54ffbe + 18d5d6d commit dfab175
Show file tree
Hide file tree
Showing 7 changed files with 922 additions and 218 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 5
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 5
29 changes: 13 additions & 16 deletions .github/workflows/nucypher-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: nucypher-core

on:
pull_request:
paths:
- "nucypher-core/**"
- "nucypher-core-python/**"
- "nucypher-core-wasm/**"
- "Cargo.*"
push:
branches:
- main
Expand Down Expand Up @@ -66,29 +61,31 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
rust:
- stable
target:
- wasm32-unknown-unknown

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm install -g yarn
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: make
working-directory: nucypher-core-wasm
- uses: borales/actions-yarn@v3.0.0
with:
cmd: --cwd nucypher-core-wasm/examples/node install
- uses: borales/actions-yarn@v3.0.0
with:
cmd: --cwd nucypher-core-wasm/examples/node build
- uses: borales/actions-yarn@v3.0.0
with:
cmd: --cwd nucypher-core-wasm/examples/node test
- run: yarn install
working-directory: nucypher-core-wasm/examples/node
- run: yarn build
working-directory: nucypher-core-wasm/examples/node
- run: yarn test
working-directory: nucypher-core-wasm/examples/node

rebundle-wasm:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
CIBW_SKIP: "cp36-* pp* *-win32 *musllinux*" # only using manylinux to build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@v1
with:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
name: Install Python
Expand Down
Loading

0 comments on commit dfab175

Please sign in to comment.