-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes a bug in calling Anoma stdlib from Nock code * Runs the anoma compilation test with the anoma node nockma evaluator. I've classified the tests in 4 categories: 1. `Working`. The test works as expected. 2. `Trace`. We need more work on our end to get the traces from the anoma node and check that they match the expected result. 3. `NodeError`. The anoma node returns `failed to prove the nock program`. 4. `Wrong`. The anoma node returns some value that does not match the expected value. --------- Co-authored-by: Lukasz Czajka <[email protected]> Co-authored-by: Łukasz Czajka <[email protected]> Co-authored-by: Paul Cadman <[email protected]>
- Loading branch information
1 parent
3030196
commit 4cdcb2f
Showing
11 changed files
with
1,072 additions
and
675 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 |
---|---|---|
|
@@ -119,6 +119,49 @@ jobs: | |
path: main | ||
submodules: true | ||
|
||
- name: Add ~/.local/bin to PATH | ||
run: | | ||
mkdir -p "$HOME/.local/bin" | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Set up Elixir | ||
id: beam | ||
uses: erlef/[email protected] | ||
with: | ||
elixir-version: "1.17.3" | ||
otp-version: "27.1" | ||
|
||
- name: Install protoc | ||
run: | | ||
sudo apt install -y protobuf-compiler | ||
protoc --version | ||
- name: Cache anoma | ||
id: cache-anoma | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ env.HOME }}/anoma | ||
key: "${{ runner.os }}-anoma" | ||
|
||
- name: Build anoma | ||
if: steps.cache-anoma.outputs.cache-hit != 'true' | ||
run: | | ||
cd $HOME | ||
git clone https://github.com/anoma/anoma.git | ||
cd anoma | ||
git checkout 98e3660b91cd55f1d9424dcff9420425ae98f5f8 | ||
mix local.hex --force | ||
mix escript.install hex protobuf --force | ||
echo "$HOME/.mix/escripts" >> $GITHUB_PATH | ||
mix deps.get | ||
mix compile | ||
mix do --app anoma_client escript.build | ||
- name: Install grpcurl | ||
run: | | ||
curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.9.1/grpcurl_1.9.1_linux_x86_64.tar.gz" | tar -xz -C ~/.local/bin --no-wildcards grpcurl | ||
- name: Cache LLVM and Clang | ||
id: cache-llvm | ||
uses: actions/cache@v3 | ||
|
@@ -146,10 +189,9 @@ jobs: | |
run: | | ||
echo "WASI_SYSROOT_PATH=$GITHUB_WORKSPACE/wasi-sysroot" >> $GITHUB_ENV | ||
- name: Add ~/.local/bin to PATH | ||
- name: Set ANOMA_PATH | ||
run: | | ||
mkdir -p "$HOME/.local/bin" | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
echo "ANOMA_PATH=$HOME/anoma" >> $GITHUB_ENV | ||
- run: echo "HOME=$HOME" >> $GITHUB_ENV | ||
shell: bash | ||
|
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
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
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.