This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use new @trufflesuite/bigint-buffer (#1414)
* use new @trufflesuite/bigint-buffer * temporarily disable windows tools install * temporarily revert to previous bigint-buffer lib * remove msbuild tools * remove line * add basic test for bigint-buffer library * force warning to test * update warn message for test * fix tests * use sinon in test * trying to force failure in CI * unforce failed tests * npm ci to install on PR * update setup-node action version * some logging and uninstalling * correct spelling * add back msbuild * removed unnecessary installations * use trufflesuite's bigint-buffer lib * update package-lock * correct bigint-buffer import * Remove .only from test Co-authored-by: David Murdoch <[email protected]> * revert to windows-2019 version for tests Co-authored-by: David Murdoch <[email protected]>
- Loading branch information
1 parent
0346754
commit 94e9572
Showing
9 changed files
with
174 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,38 +29,15 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Add msbuild to PATH | ||
# we need msbuild tools for the `bigint-buffer` module | ||
# we need msbuild tools for the `bcrypto` module | ||
if: startsWith(matrix.os, 'windows-') | ||
uses: microsoft/[email protected] | ||
|
||
- name: install node tools | ||
# we don't need to install the windows-build-tools package, as we | ||
# already have almost everything we need. We only need to install | ||
# python 2.7. Also windows-build-tools@4 fails to install because some | ||
# resources it downloads no longer exist, and windows-build-tools@5 | ||
# fails to install Python (it will wait on the python installer forever) | ||
if: startsWith(matrix.os, 'windows-') | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "2.7" | ||
|
||
- name: install node-gyp | ||
if: startsWith(matrix.os, 'windows-') | ||
run: npm install --global [email protected] | ||
|
||
- name: Set node config to use python2.7 | ||
if: startsWith(matrix.os, 'windows-') | ||
run: npm config set python python2.7 | ||
|
||
- name: Set node config to set msvs_version to 2019 | ||
if: startsWith(matrix.os, 'windows-') | ||
run: npm config set msvs_version 2019 --global | ||
|
||
- run: npm ci | ||
- run: npm run tsc | ||
- run: npm test | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { toBufferBE, toBigIntBE } from "bigint-buffer"; | ||
export { toBufferBE, toBigIntBE } from "@trufflesuite/bigint-buffer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.