Skip to content

Commit

Permalink
Merge branch 'master' into ci/master-cachix-push
Browse files Browse the repository at this point in the history
  • Loading branch information
F-WRunTime authored Nov 9, 2023
2 parents b489c03 + c1de293 commit 621a30d
Show file tree
Hide file tree
Showing 16 changed files with 137 additions and 198 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: 'Build KEVM'
run: |
docker exec -u github-user kontrol-ci-profile-${GITHUB_SHA} /bin/bash -c 'poetry install'
docker exec -u github-user kontrol-ci-profile-${GITHUB_SHA} /bin/bash -c 'CXX=clang++-14 poetry run kevm-dist --verbose build -j`nproc` plugin foundry'
docker exec -u github-user kontrol-ci-profile-${GITHUB_SHA} /bin/bash -c 'CXX=clang++-14 poetry run kevm-dist --verbose build -j`nproc` evm-semantics.plugin kontrol.foundry'
- name: 'Run profiling'
run: |
PROF_ARGS=--numprocesses=8
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
- name: 'Build KEVM'
run: |
docker exec -u github-user kontrol-ci-integration-${GITHUB_SHA} /bin/bash -c 'poetry install'
docker exec -u github-user kontrol-ci-integration-${GITHUB_SHA} /bin/bash -c 'CXX=clang++-14 poetry run kevm-dist --verbose build -j`nproc` plugin haskell foundry'
docker exec -u github-user kontrol-ci-integration-${GITHUB_SHA} /bin/bash -c 'CXX=clang++-14 poetry run kevm-dist --verbose build -j`nproc` evm-semantics.plugin evm-semantics.haskell kontrol.foundry'
- name: 'Run integration tests'
run: |
TEST_ARGS=--numprocesses=8
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ poetry install

In order to build `kontrol`, you need to build these specific targets:
```sh
poetry run kevm-dist --verbose build -j3 plugin haskell foundry
poetry run kevm-dist --verbose build -j3 evm-semantics.plugin evm-semantics.haskell kontrol.foundry
```

To change the default compiler:
```sh
CXX=clang++-14 poetry run kevm-dist --verbose build -j3 plugin haskell foundry
CXX=clang++-14 poetry run kevm-dist --verbose build -j3 evm-semantics.plugin evm-semantics.haskell kontrol.foundry
```

On Apple Silicon:
```sh
APPLE_SILICON=true poetry run kevm-dist --verbose build -j3 plugin haskell foundry
APPLE_SILICON=true poetry run kevm-dist --verbose build -j3 evm-semantics.plugin evm-semantics.haskell kontrol.foundry
```

Targets can be cleaned with:
Expand Down Expand Up @@ -81,4 +81,4 @@ For more information about the [K Framework], refer to these sources:
- [Logical Frameworks](https://dl.acm.org/doi/10.5555/208683.208700): Discussion of logical frameworks.

[K Framework]: <https://kframework.org>
[kup package manager]: <https://github.com/runtimeverification/kup>
[kup package manager]: <https://github.com/runtimeverification/kup>
2 changes: 1 addition & 1 deletion deps/k_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.174
6.1.1
2 changes: 1 addition & 1 deletion deps/kevm_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.333
1.0.347
85 changes: 35 additions & 50 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 14 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
description = "Kontrol";

inputs = {
kevm.url = "github:runtimeverification/evm-semantics/v1.0.333";
kevm.url = "github:runtimeverification/evm-semantics/v1.0.347";
nixpkgs.follows = "kevm/nixpkgs";
nixpkgs-pyk.follows = "kevm/nixpkgs-pyk";
k-framework.follows = "kevm/k-framework";
flake-utils.follows = "kevm/flake-utils";
rv-utils.follows = "kevm/rv-utils";
pyk.follows = "kevm/pyk";
poetry2nix.follows = "kevm/poetry2nix";
foundry.follows = "kevm/foundry";
solc.follows = "kevm/solc";
foundry = {
url =
"github:shazow/foundry.nix/monthly"; # Use monthly branch for permanent releases
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
solc = {
url = "github:hellwolf/solc.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = { self, k-framework, nixpkgs, flake-utils, poetry2nix, kevm
, rv-utils, pyk, foundry, solc, ... }@inputs:
Expand Down Expand Up @@ -93,16 +102,13 @@
prev.lib.optionalString
(prev.stdenv.isAarch64 && prev.stdenv.isDarwin)
"APPLE_SILICON=true"
} kevm-dist build -j4 foundry
} kevm-dist build kontrol.foundry
'';

installPhase = ''
mkdir -p $out
cp -r ./kdist-*/* $out/
ln -s ${prev.kevm}/haskell $out/haskell
ln -s ${prev.kevm}/haskell-standalone $out/haskell-standalone
ln -s ${prev.kevm}/llvm $out/llvm
ln -s ${prev.kevm}/plugin $out/plugin
ln -s ${prev.kevm}/evm-semantics $out/evm-semantics
mkdir -p $out/bin
makeWrapper ${
(kontrol-pyk { inherit solc_version; })
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.50
0.1.55
Loading

0 comments on commit 621a30d

Please sign in to comment.