-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from NatLabs/icrc3
Icrc3 value type
- Loading branch information
Showing
34 changed files
with
281 additions
and
183 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 |
---|---|---|
@@ -1,42 +1,59 @@ | ||
name: Makefile CI | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: aviate-labs/setup-dfx@v0.2.5 | ||
with: | ||
dfx-version: 0.14.1 | ||
|
||
- name: install wasmtime | ||
run: | | ||
curl https://wasmtime.dev/install.sh -sSf | bash | ||
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH | ||
npm --yes -g i mocv | ||
|
||
- name: Select mocv version | ||
run: mocv use 0.10.3 | ||
|
||
- name: install mops | ||
run: | | ||
npm --yes -g i ic-mops@0.34.3 | ||
mops i | ||
mops sources | ||
# - name: Detect Warnings | ||
# run: make no-warn | ||
|
||
- name: Run Tests | ||
run: mops test | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
name: Build and test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Cache Node modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Cache mops packages | ||
uses: actions/cache@v3 | ||
with: | ||
key: mops-packages-${{ hashFiles('mops.toml') }} | ||
path: | | ||
~/.cache/mops | ||
~/mops | ||
- name: Install dfx | ||
uses: dfinity/setup-dfx@main | ||
- name: Confirm successful installation | ||
run: dfx --version | ||
|
||
- name: Install dfx cache | ||
run: dfx cache install | ||
|
||
- name: Install mops & mocv | ||
run: | | ||
npm --yes -g i ic-mops | ||
mops i | ||
mops toolchain init | ||
# set moc path for dfx to use | ||
echo "DFX_MOC_PATH=$(mops toolchain bin moc)" >> $GITHUB_ENV | ||
# - name: Detect warnings | ||
# run: make check | ||
|
||
- name: Run Tests | ||
run: mops test |
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,11 +1,11 @@ | ||
.PHONY: compile-tests no-warn docs | ||
.PHONY: test compile-tests docs no-warn | ||
|
||
compile-tests: | ||
bash compile-tests.sh $(file) | ||
test: | ||
mops test | ||
|
||
no-warn: | ||
find src -type f -name '*.mo' -print0 | xargs -0 $(shell mocv bin)/moc -r $(shell mops sources) -Werror -wasi-system-api | ||
check: | ||
find src -type f -name '*.mo' -print0 | \ | ||
xargs -0 $(shell mops toolchain bin moc) -r $(shell mops sources) -Werror -wasi-system-api | ||
|
||
docs: | ||
$(shell mocv bin)/mo-doc | ||
$(shell mocv bin)/mo-doc --format plain | ||
bench: | ||
mops bench --gc incremental |
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,21 +1,23 @@ | ||
[package] | ||
name = "serde" | ||
version = "2.2.0" | ||
version = "2.3.0" | ||
description = "A serialisation and deserialisation library for Motoko." | ||
repository = "https://github.com/NatLabs/serde" | ||
keywords = [ "json", "candid", "cbor", "urlencoded", "serialization" ] | ||
license = "MIT" | ||
|
||
[dependencies] | ||
base = "0.10.3" | ||
itertools = "0.1.2" | ||
base = "0.11.1" | ||
itertools = "0.2.1" | ||
candid = "1.0.2" | ||
xtended-numbers = "0.2.1" | ||
json = "https://github.com/NatLabs/json.mo#float" | ||
parser-combinators = "https://github.com/aviate-labs/parser-combinators.mo#v0.1.2@6a331bf78e9dcd7623977f06c8e561fd1a8c0103" | ||
cbor = "0.1.3" | ||
|
||
[dev-dependencies] | ||
test = "1.2.0" | ||
test = "2.0.0" | ||
|
||
[toolchain] | ||
wasmtime = "14.0.4" | ||
wasmtime = "14.0.4" | ||
moc = "0.11.1" |
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
Oops, something went wrong.