Skip to content

Commit

Permalink
Add running op-program CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Apr 16, 2024
1 parent b5c7de4 commit 4dab6db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,21 @@ jobs:
go-version: '1.21.x'
- name: Check if optimism submodule version matches go.mod version
run: ./.github/scripts/check_versions.sh

op-program-test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Submodule update
run: git submodule update --init
- uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Build asterisc
run: make build-rvgo && cp rvgo/bin/asterisc tests/op-program-test/
- name: Build op-program
run: make -C rvsol/lib/optimism/op-program op-program-host && cp rvsol/lib/optimism/op-program/bin/op-program tests/op-program-test/
- name: Run op-program
run: ./local_cmd.sh
working-directory: tests/op-program-test
2 changes: 1 addition & 1 deletion tests/op-program-test/capture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rm ./preimages/*
./capture_cmd.sh

# Clean up
rm ./capture_cmd.sh ./asterisc ./op-program ./op-program-client-riscv.elf ./meta.json ./out.json
rm ./capture_cmd.sh ./asterisc ./op-program ./op-program-client-riscv.elf ./out.json

# Write optimism version
echo $git_commit_hash > VERSION

0 comments on commit 4dab6db

Please sign in to comment.