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
7a7896df
Commit
7a7896df
authored
Mar 17, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
Mar 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add scenarios to CI
parent
f99fa484
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
0 deletions
+48
-0
test_challenge_fault.yml
.github/workflows/test_challenge_fault.yml
+20
-0
test_challenge_simple.yml
.github/workflows/test_challenge_simple.yml
+20
-0
README.md
README.md
+2
-0
build_unicorn.sh
build_unicorn.sh
+6
-0
No files found.
.github/workflows/test_challenge_fault.yml
0 → 100644
View file @
7a7896df
name
:
Test Challenge Fault
on
:
[
push
,
pull_request
]
jobs
:
unit
:
name
:
Fault injection challenge scenario
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
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 make
npm install --global yarn
-
name
:
Build
run
:
make build
-
name
:
Run fault injection challenge scenario
run
:
demo/challenge_fault.sh
.github/workflows/test_challenge_simple.yml
0 → 100644
View file @
7a7896df
name
:
Test Challenge Simple
on
:
[
push
,
pull_request
]
jobs
:
unit
:
name
:
Simple challenge scenario
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
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 make
npm install --global yarn
-
name
:
Build
run
:
make build
-
name
:
Run simple challenge scenario
run
:
demo/challenge_simple.sh
README.md
View file @
7a7896df
...
...
@@ -37,6 +37,8 @@ contracts -- A Merkleized MIPS processor on chain + the challenge logic
## Building
Pre-requisites: Go, Node.js, Yarn (
`npm install -g yarn`
) and Make.
```
make build
make test # verify everything works correctly
...
...
build_unicorn.sh
View file @
7a7896df
...
...
@@ -8,3 +8,9 @@ cd unicorn2
cmake
.
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
#cmake . -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Debug
make
-j8
# export LIBUNICORN_PATH for Github CI
# TODO: is this actually needed?
if
[[
!
-z
"
$GITHUB_ENV
"
]]
;
then
echo
"LIBUNICORN_PATH=
$(
pwd
)
/unicorn2/"
>>
$GITHUB_ENV
fi
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