-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
807 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: PR | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
example: | ||
name: Uniswap example | ||
runs-on: | ||
[ | ||
runs-on, | ||
cpu=64, | ||
ram=256, | ||
family=m7i+m7a, | ||
hdd=80, | ||
image=ubuntu22-full-x64, | ||
spot=false, | ||
"run-id=${{ github.run_id }}", | ||
] | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Install sp1up" | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
echo "$HOME/.sp1/bin" >> $GITHUB_PATH | ||
- name: "Install SP1 toolchain" | ||
run: | | ||
sp1up | ||
- name: "Set up RPC env" | ||
run: | | ||
echo "ETH_RPC_URL=${{secrets.ETH_RPC_URL}}" >> $GITHUB_ENV | ||
- name: Run uniswap script | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: run | ||
args: | ||
--release --bin uniswap --ignore-rust-version | ||
env: | ||
RUSTFLAGS: -Copt-level=3 -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | ||
RUST_BACKTRACE: full | ||
RUST_LOG: info | ||
|
||
|
||
test-e2e: | ||
name: Test | ||
runs-on: ["runs-on", "runner=32cpu-linux-x64", "run-id=${{ github.run_id }}"] | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: "Checkout sources" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up RPC env" | ||
run: | | ||
echo "ETH_RPC_URL=${{secrets.ETH_RPC_URL}}" >> $GITHUB_ENV | ||
- name: "Run integration test" | ||
run: | | ||
SP1_DEV=1 RUST_LOG=info cargo test -p sp1-cc-host-executor --release -- --nocapture | ||
Oops, something went wrong.