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

Update moc to 0.8.7 #20

Open
wants to merge 6 commits into
base: 0.2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: aviate-labs/[email protected].3
- uses: aviate-labs/[email protected].5
with:
dfx-version: 0.13.1

- name: "install Motoko binaries"
run: |
sudo dfx cache install
wget https://github.com/dfinity/motoko/releases/download/${{ env.moc_version }}/motoko-linux64-${{ env.moc_version }}.tar.gz
mkdir -p /home/runner/bin
tar -xzf motoko-linux64-${{ env.moc_version }}.tar.gz -C /home/runner/bin
dfx cache show | xargs -n 1 -I{} mkdir -p {}
dfx cache show | xargs -n 1 -I{} cp -r /home/runner/bin/* {}
echo "/home/runner/bin" >> $GITHUB_PATH

- name: "install vessel"
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
install-dfx-cache:
dfx cache install

check: install-dfx-cache
check:
find src -type f -name '*.mo' -print0 | xargs -0 $(shell dfx cache show)/moc $(shell vessel sources) --check

check-mops: install-dfx-cache
check-mops:
find src -type f -name '*.mo' -print0 | xargs -0 $(shell dfx cache show)/moc $(shell mops sources) --check

all: check-strict check-strict-mops docs test

check-strict: install-dfx-cache
check-strict:
find src -type f -name '*.mo' -print0 | xargs -0 $(shell dfx cache show)/moc $(shell vessel sources) -Werror --check

check-strict-mops: install-dfx-cache
check-strict-mops:
find src -type f -name '*.mo' -print0 | xargs -0 $(shell dfx cache show)/moc $(shell mops sources) -Werror --check

docs: install-dfx-cache
docs:
$(shell dfx cache show)/mo-doc

test:
Expand Down
8 changes: 6 additions & 2 deletions package-set.dhall
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let vessel_package_set =
https://github.com/dfinity/vessel-package-set/releases/download/mo-0.8.3-20230224/package-set.dhall
https://github.com/dfinity/vessel-package-set/releases/download/mo-0.8.7-20230406/package-set.dhall
let Package =
{ name : Text, version : Text, repo : Text, dependencies : List Text }

Expand All @@ -26,7 +26,11 @@ let
, version = "v0.2.0"
, dependencies = [ "base"]
},
{ name = "base", repo = "https://github.com/dfinity/motoko-base.git", version = "moc-0.8.1", dependencies = []: List Text },
{ name = "base"
, repo = "https://github.com/dfinity/motoko-base.git"
, version = "a867420b4c147c0df64e999fb11f0978e82e1d2a"
, dependencies = []: List Text
},
{ name = "map"
, repo = "https://github.com/ZhenyaUsenko/motoko-hash-map"
, version = "v7.0.0"
Expand Down
4 changes: 2 additions & 2 deletions vessel.dhall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
dependencies = [ "base", "matchers", "candid", "xtendedNumbers", "stablebuffer", "map","candy_0_1_12"],
compiler = Some "0.8.1",
dependencies = ["base", "matchers", "candid", "xtendedNumbers", "stablebuffer", "map", "candy_0_1_12"],
compiler = Some "0.8.7",
}