Skip to content

Commit 4e74e4a

Browse files
committed
Add instruction_check workflow to circleci
1 parent eaa84dc commit 4e74e4a

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ workflows:
3838
- prestate-reproducibility:
3939
version: "1.3.1"
4040
asterisc-commit: "25feabf"
41+
instruction_check:
42+
jobs:
43+
- build-kona
44+
- run-rv64-matching-tool
4145

4246
commands:
4347
checkout-with-monorepo:
@@ -414,3 +418,43 @@ jobs:
414418
echo "Prestate did not match expected"
415419
exit 1
416420
fi
421+
422+
build-kona:
423+
docker:
424+
- image: cimg/base:current
425+
steps:
426+
- checkout
427+
- run:
428+
name: Clone Kona Repository
429+
command: |
430+
git clone git@github.com:op-rs/kona.git --depth 1
431+
- run:
432+
name: Install Just
433+
command: |
434+
sudo apt-get update && sudo apt-get install just
435+
- run:
436+
name: Build RISCV ELF
437+
command: |
438+
cd kona
439+
just build-asterisc --bin kona --profile release-client-lto
440+
- persist_to_workspace:
441+
root: .
442+
paths:
443+
- kona/target/release-client-lto/kona
444+
445+
run-rv64-matching-tool:
446+
docker:
447+
- image: <<pipeline.parameters.ci_builder_image>>
448+
steps:
449+
- attach_workspace:
450+
at: .
451+
- run:
452+
name: install_python_dep
453+
command: |
454+
python3 -m venv localenv
455+
source localenv/bin/activate
456+
pip3 install -r requirements.txt
457+
- run:
458+
name: Run RV64 matching tool
459+
command: |
460+
python3 matching_tool.py /Users/minhyuk/Desktop/sunny/kona/target/release-client-lto/kona ./supported_targets/asterisc-v1.1.2.json

0 commit comments

Comments
 (0)