Skip to content

Commit

Permalink
Update to SEAL 4.1.0 (#138)
Browse files Browse the repository at this point in the history
* Update to support SEAL 4.1.0

* Update to SEAL 4.1.0, update dev deps

* fix benchmark

* update seal

* updated readme

* remove unused tests

* update CI
  • Loading branch information
s0l0ist authored Jan 5, 2023
1 parent ef17fff commit 70a263a
Show file tree
Hide file tree
Showing 13 changed files with 2,391 additions and 1,977 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Pull & update submodules
run: |
git submodule update --init
- name: EMSDK Version
id: emsdk-version
run: |
echo "::set-output name=SHA::$(./submodules/emsdk/emsdk list | grep recommended | awk -F'[()]' '{print $2}')"
echo "::set-output name=SHA::$(./submodules/emsdk/emsdk list | grep recommended | awk -F'[()]' '{print $2}')"
- name: Cache EMSDK
id: cache-emsdk
uses: actions/cache@v2.1.7
uses: actions/cache@v3
with:
path: submodules/emsdk
key: ${{ runner.os }}-c-emsdk-${{ steps.emsdk-version.outputs.SHA }}
Expand All @@ -31,7 +31,7 @@ jobs:
if: steps.cache-emsdk.outputs.cache-hit != 'true'
run: |
npm run em:update
- name: Compile SEAL
if: steps.cache-seal.outputs.cache-hit != 'true'
run: |
Expand All @@ -49,21 +49,21 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- name: Cache NPM Dependencies
id: cache-npm
uses: actions/cache@v2.1.7
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-c-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-c-node-
- name: Install NPM Dependencies
run: |
npm install
Expand All @@ -73,7 +73,7 @@ jobs:
with:
name: seal-artifacts
path: src/bin/

- name: Transpile to JavaScript
run: |
npm run compile
Expand All @@ -84,6 +84,4 @@ jobs:
run: |
npm run coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]


uses: codecov/codecov-action@v3
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
See [Microsoft's Change log](https://github.com/microsoft/SEAL/blob/master/CHANGES.md)
for more details on each SEAL version change.

## Version 5.1.0

Feat:

- Updated to SEAL 4.1.0
- Added new bindings for `modReduceTo` and `modReduceToNext`.
- `addPlain` and `subPlain` now take an optional memory pool parameter (defaults
to global). This is a non-breaking change.

## Version 5.0.0

Feat:
Expand Down
681 changes: 455 additions & 226 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
coverageThreshold: {
global: {
branches: 93,
functions: 100,
functions: 99,
lines: 96,
statements: 96
}
Expand Down
Loading

0 comments on commit 70a263a

Please sign in to comment.