Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NodeJS compatibilty across different versions #94

Merged
merged 8 commits into from
Jun 12, 2024
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
Loading