Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
b53855e7
Commit
b53855e7
authored
Jan 27, 2022
by
Nicolas "Norswap" Laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unicorn dependency on CI
parent
80f68102
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
test_challenge.yml
.github/workflows/test_challenge.yml
+1
-0
test_mipsevm.yml
.github/workflows/test_mipsevm.yml
+2
-3
README.md
README.md
+0
-3
build_unicorn.sh
build_unicorn.sh
+11
-3
No files found.
.github/workflows/test_challenge.yml
View file @
b53855e7
...
@@ -16,6 +16,7 @@ jobs:
...
@@ -16,6 +16,7 @@ jobs:
-
name
:
Install unicorn
-
name
:
Install unicorn
run
:
|
run
:
|
./build_unicorn.sh
./build_unicorn.sh
echo "LIBUNICORN_PATH=$(pwd)/unicorn2/" >> $GITHUB_ENV
-
name
:
Install yarn
-
name
:
Install yarn
run
:
|
run
:
|
npm install --global yarn
npm install --global yarn
...
...
.github/workflows/test_mipsevm.yml
View file @
b53855e7
...
@@ -16,6 +16,7 @@ jobs:
...
@@ -16,6 +16,7 @@ jobs:
-
name
:
Install unicorn
-
name
:
Install unicorn
run
:
|
run
:
|
./build_unicorn.sh
./build_unicorn.sh
echo "LIBUNICORN_PATH=$(pwd)/unicorn2/" >> $GITHUB_ENV
-
name
:
Install yarn
-
name
:
Install yarn
run
:
|
run
:
|
npm install --global yarn
npm install --global yarn
...
@@ -29,9 +30,7 @@ jobs:
...
@@ -29,9 +30,7 @@ jobs:
minigeth/go-ethereum 13284469
minigeth/go-ethereum 13284469
minigeth/go-ethereum 13284491
minigeth/go-ethereum 13284491
-
name
:
Install Python deps
-
name
:
Install Python deps
run
:
|
run
:
pip3 install -r mipigo/requirements.txt
pip3 install -r mipigo/requirements.txt
(cd unicorn2/bindings/python && python3 setup.py install)
-
name
:
Build minigeth for embedded
-
name
:
Build minigeth for embedded
run
:
|
run
:
|
cd mipigo
cd mipigo
...
...
README.md
View file @
b53855e7
...
@@ -27,10 +27,7 @@ contracts -- A Merkleized MIPS processor on chain + the challenge logic
...
@@ -27,10 +27,7 @@ contracts -- A Merkleized MIPS processor on chain + the challenge logic
The following commands should be run from the root directory unless otherwise specified:
The following commands should be run from the root directory unless otherwise specified:
```
```
# build unicorn
./build_unicorn.sh
./build_unicorn.sh
(cd unicorn2/bindings/python && python3 setup.py install)
export LIBUNICORN_PATH=$(pwd)/unicorn2/
# build minigeth for MIPS
# build minigeth for MIPS
(cd mipigo && ./build.sh)
(cd mipigo && ./build.sh)
...
...
build_unicorn.sh
View file @
b53855e7
#!/bin/bash
#!/bin/bash
git clone https://github.com/geohot/unicorn.git
-b
dev unicorn2
if
[[
!
-d
unicorn2
]]
;
then
#git clone https://github.com/unicorn-engine/unicorn.git -b dev unicorn2
git clone https://github.com/geohot/unicorn.git
-b
dev unicorn2
#git clone https://github.com/unicorn-engine/unicorn.git -b dev unicorn2
fi
cd
unicorn2
cd
unicorn2
#cmake . -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Debug
cmake
.
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
cmake
.
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
#cmake . -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Debug
make
-j8
make
-j8
# setting this avoids re-building unicorn in setup.py
export
LIBUNICORN_PATH
=
$(
pwd
)
cd
bindings/python
sudo
python3 setup.py
install
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment