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
83f6e52f
Commit
83f6e52f
authored
Mar 21, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
May 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update workflows to use makefile (notably checks out the submodule)
parent
c5d9332c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
93 deletions
+59
-93
test_challenge.yml
.github/workflows/test_challenge.yml
+9
-29
test_challenge_fault.yml
.github/workflows/test_challenge_fault.yml
+4
-2
test_challenge_simple.yml
.github/workflows/test_challenge_simple.yml
+4
-2
test_contracts.yml
.github/workflows/test_contracts.yml
+7
-8
test_minigeth.yml
.github/workflows/test_minigeth.yml
+10
-16
test_mipsevm.yml
.github/workflows/test_mipsevm.yml
+10
-27
Makefile
Makefile
+15
-9
No files found.
.github/workflows/test_challenge.yml
View file @
83f6e52f
name
:
Test Challenge
on
:
push
on
:
[
push
,
pull_request
]
jobs
:
unit
:
...
...
@@ -8,35 +8,15 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
name
:
Install Go + Node
uses
:
actions/checkout@v3
with
:
submodules
:
true
-
name
:
Install Toolchain (Go, Node.js, Yarn and Make)
run
:
|
sudo apt-get update
sudo apt-get -y --no-install-recommends install golang-1.16 nodejs npm
-
name
:
Install unicorn
run
:
|
./build_unicorn.sh
echo "LIBUNICORN_PATH=$(pwd)/unicorn2/" >> $GITHUB_ENV
-
name
:
Install yarn
run
:
|
sudo apt-get -y --no-install-recommends install golang-1.16 nodejs npm make
npm install --global yarn
yarn install
-
name
:
Build minigeth and run block 13284469 (builds preimage cache)
run
:
|
(cd minigeth/ && go build)
mkdir -p /tmp/cannon
minigeth/go-ethereum 13284469
-
name
:
Install Python deps
run
:
pip3 install -r mipigo/requirements.txt
-
name
:
Build minigeth for embedded
run
:
|
cd mipigo
./build.sh
-
name
:
Build mipsevm
run
:
|
cd mipsevm
go build
-
name
:
Generate golden and checkpoints for
13284469
run
:
mipsevm/mipsevm && mipsevm/mipsevm
13284469
-
name
:
Build
run
:
make unicorn minigeth_mips minigeth_default_arch mipsevm yarn
-
name
:
Run test challenge
run
:
npx hardhat test test/challenge_test.js
run
:
make test_challenge
.github/workflows/test_challenge_fault.yml
View file @
83f6e52f
name
:
Test Challenge Fault
on
:
push
on
:
[
push
,
pull_request
]
jobs
:
unit
:
...
...
@@ -8,7 +8,9 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
uses
:
actions/checkout@v3
with
:
submodules
:
true
-
name
:
Install Toolchain (Go, Node.js, Yarn and Make)
run
:
|
sudo apt-get update
...
...
.github/workflows/test_challenge_simple.yml
View file @
83f6e52f
name
:
Test Challenge Simple
on
:
push
on
:
[
push
,
pull_request
]
jobs
:
unit
:
...
...
@@ -8,7 +8,9 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
uses
:
actions/checkout@v3
with
:
submodules
:
true
-
name
:
Install Toolchain (Go, Node.js, Yarn and Make)
run
:
|
sudo apt-get update
...
...
.github/workflows/test_contracts.yml
View file @
83f6e52f
name
:
Test Contracts
on
:
push
on
:
[
push
,
pull_request
]
jobs
:
unit
:
...
...
@@ -8,14 +8,13 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v
2
-
name
:
Install
Node
uses
:
actions/checkout@v
3
-
name
:
Install
Toolchain (Node, Yarn and Make)
run
:
|
sudo apt-get update
sudo apt-get -y --no-install-recommends install nodejs npm
-
name
:
Install yarn
run
:
|
sudo apt-get -y --no-install-recommends install nodejs npm make
npm install --global yarn
yarn install
-
name
:
Install Dependencies
run
:
make yarn
-
name
:
Hardhat Test
run
:
npx hardhat test
run
:
make test_contracts
.github/workflows/test_minigeth.yml
View file @
83f6e52f
name
:
Test
m
inigeth
name
:
Test
M
inigeth
on
:
push
on
:
[
push
,
pull_request
]
jobs
:
unit
:
...
...
@@ -8,20 +8,14 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
name
:
Install Go
uses
:
actions/checkout@v3
with
:
submodules
:
true
-
name
:
Install Toolchain (Go & Make)
run
:
|
sudo apt-get update
sudo apt-get -y --no-install-recommends install golang-1.16
sudo apt-get -y --no-install-recommends install golang-1.16
make
-
name
:
Build minigeth
run
:
|
(cd minigeth/ && go build)
mkdir -p /tmp/cannon
-
name
:
Test block 13284491 (0 tx)
run
:
minigeth/go-ethereum
13284491
-
name
:
Test block 13284469 (few tx)
run
:
minigeth/go-ethereum
13284469
-
name
:
Test block 13284053 (deletion)
run
:
minigeth/go-ethereum
13284053
-
name
:
Test block 13303075 (uncles)
run
:
minigeth/go-ethereum
13303075
run
:
make minigeth_default_arch
-
name
:
Test Minigeth
run
:
make test_minigeth
.github/workflows/test_mipsevm.yml
View file @
83f6e52f
name
:
Test MIPS EVM
on
:
push
on
:
[
push
,
pull_request
]
jobs
:
unit
:
...
...
@@ -8,32 +8,15 @@ jobs:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
name
:
Install Go + Node
uses
:
actions/checkout@v3
with
:
submodules
:
true
-
name
:
Install Toolchain (Go, Node, Yarn & Make)
run
:
|
sudo apt-get update
sudo apt-get -y --no-install-recommends install golang-1.16 nodejs npm
-
name
:
Install unicorn
run
:
|
./build_unicorn.sh
echo "LIBUNICORN_PATH=$(pwd)/unicorn2/" >> $GITHUB_ENV
-
name
:
Install yarn
run
:
|
sudo apt-get -y --no-install-recommends install golang-1.16 nodejs npm make
npm install --global yarn
yarn install
-
name
:
Hardhat Compile
run
:
npx hardhat compile
-
name
:
Build minigeth and run blocks 13284469 and
13284491
run
:
|
(cd minigeth/ && go build)
mkdir -p /tmp/cannon
minigeth/go-ethereum 13284469
minigeth/go-ethereum 13284491
-
name
:
Install Python deps
run
:
pip3 install -r mipigo/requirements.txt
-
name
:
Build minigeth for embedded
run
:
|
cd mipigo
./build.sh
-
name
:
All MIPS EVM tests
run
:
cd mipsevm && go test -v
-
name
:
Build
run
:
make build
-
name
:
Test MIPS EVM
run
:
make test_mipsevm
Makefile
View file @
83f6e52f
build
:
unicorn submodules minigeth_mips minigeth_default_arch mipsevm contracts
yarn
SHELL
:=
/bin/bash
build
:
unicorn submodule minigeth_mips minigeth_default_arch mipsevm contracts
unicorn
:
./build_unicorn.sh
submodules
:
git submodule init
git submodule update
submodule
:
# CI will checkout submodules on its own
(
and fails on these commands
)
if
[[
-z
"
$$
GITHUB_ENV"
]]
;
then
\
git submodule init
;
\
git submodule update
;
\
fi
minigeth_mips
:
cd
mipigo
&&
./build.sh
...
...
@@ -17,10 +21,12 @@ minigeth_default_arch:
mipsevm
:
cd
mipsevm
&&
go build
contracts
:
yarn
contracts
:
yarn
npx hardhat compile
yarn
:
yarn
install
define
clear_cache
rm
-rf
/tmp/cannon
mkdir
-p
/tmp/cannon
...
...
@@ -71,5 +77,5 @@ mrproper: clean
rm
-rf
node_modules
rm
-rf
mipigo/venv
.PHONY
:
build unicorn submodule
s
minigeth_mips minigeth_default_arch mipsevm contracts
\
clean mrproper test_challenge test_mipsevm test_minigeth test
.PHONY
:
build unicorn submodule minigeth_mips minigeth_default_arch mipsevm contracts
\
yarn
clean mrproper test_challenge test_mipsevm test_minigeth test
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