Skip to content

Commit

Permalink
coq-of-solidity: more work
Browse files Browse the repository at this point in the history
  • Loading branch information
clarus committed Nov 24, 2024
1 parent 213bbe1 commit 0f1af39
Show file tree
Hide file tree
Showing 9,068 changed files with 3,008,165 additions and 5,057,407 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
52 changes: 52 additions & 0 deletions .github/workflows/coq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Coq

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Download Git submodules
run: git submodule update --init --recursive
- uses: coq-community/docker-coq-action@v1
with:
custom_image: coqorg/coq:8.17-ocaml-4.14-flambda
custom_script: |
startGroup "Install dependencies"
sudo apt-get update
sudo apt-get install -y cmake libboost-all-dev
opam install -y --deps-only coq/CoqOfSolidity/coq-of-solidity.opam
endGroup
startGroup "Build"
sudo chown -R $(whoami) .
mkdir build
cd build
cmake ..
# make
cd ..
endGroup
startGroup "Check that the diff is empty (excluding submodules)"
git -c color.ui=always diff --exit-code --ignore-submodules=dirty
endGroup
startGroup "Install Coq dependencies"
cd coq/third-party/coq-evm
./configure
make
make install
cd ../../..
endGroup
startGroup "Compile Coq project"
cd coq/CoqOfSolidity
make
cd ../..
endGroup
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "deps/fmtlib"]
path = deps/fmtlib
url = https://github.com/fmtlib/fmt.git
[submodule "coq/third-party/coq-evm"]
path = coq/third-party/coq-evm
url = https://github.com/formal-land/coq-evm.git
Loading

0 comments on commit 0f1af39

Please sign in to comment.