Skip to content

Commit f2bd974

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

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ 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:
45+
requires:
46+
- build-kona
4147

4248
commands:
4349
checkout-with-monorepo:
@@ -414,3 +420,43 @@ jobs:
414420
echo "Prestate did not match expected"
415421
exit 1
416422
fi
423+
424+
build-kona:
425+
machine:
426+
image: ubuntu-2404:current
427+
steps:
428+
- run:
429+
name: Clone Kona Repository
430+
command: |
431+
git clone git@github.com:op-rs/kona.git --depth 1
432+
- run:
433+
name: Install just
434+
command: sudo apt update && sudo apt 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: /home/circleci/project
442+
paths:
443+
- kona/target/riscv64imac-unknown-none-elf/release-client-lto
444+
445+
run-rv64-matching-tool:
446+
docker:
447+
- image: cimg/base:current
448+
steps:
449+
- attach_workspace:
450+
at: .
451+
- checkout
452+
- run:
453+
name: install_python_dep
454+
command: |
455+
pip3 install -r requirements.txt
456+
working_directory: tests/rv64-matching-tool
457+
- run:
458+
name: Run RV64 matching tool
459+
command: |
460+
cd tests
461+
python3 matching_tool.py /root/project/kona/target/riscv64imac-unknown-none-elf/release-client-lto/kona ./supported_targets/asterisc-v1.1.2.json
462+
working_directory: tests/rv64-matching-tool

0 commit comments

Comments
 (0)