Skip to content

Commit

Permalink
Merge pull request #22 from paulmillr/rewrite
Browse files Browse the repository at this point in the history
Massive improvements
  • Loading branch information
paulmillr authored Mar 11, 2024
2 parents 4ddd167 + a77ce98 commit 5bd9eb4
Show file tree
Hide file tree
Showing 70 changed files with 5,438 additions and 61,706 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
name: Node CI

on: [push, pull_request]
on:
- push
- pull_request
jobs:
test:
name: v${{ matrix.node }} @ ubuntu-latest
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
node:
- 18
- 20
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm run lint --if-present
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: ${{ matrix.node }}
- name: Cache Submodules
id: cache-submodule
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: |
test/vectors/ethereum-tests
test/vectors/ethers
test/vectors/viem
key: ${{ runner.os }}-submodules
- name: Update git submodules
if: steps.cache-submodule.outputs.cache-hit != 'true'
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
with:
submodules: recursive
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm run lint --if-present
27 changes: 27 additions & 0 deletions .github/workflows/upload-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload standalone file to GitHub Releases
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: |
npm install -g npm
npm ci
npm run build
cd build
npm ci
npm run build
gh release upload ${{ github.event.release.tag_name }} noble-ciphers.js
env:
GH_TOKEN: ${{ github.token }}
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "test/vectors/ethereum-tests"]
path = test/vectors/ethereum-tests
url = https://github.com/ethereum/tests.git
[submodule "test/vectors/ethers"]
path = test/vectors/ethers
url = https://github.com/ethers-io/ethers.js.git
[submodule "test/vectors/viem"]
path = test/vectors/viem
url = https://github.com/wevm/viem.git
Loading

0 comments on commit 5bd9eb4

Please sign in to comment.