Skip to content

feat: add ci

feat: add ci #4

Workflow file for this run

name: PR
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
examples:
name: Examples
runs-on: ["runs-on", "runner=64cpu-linux-x64", "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 RPC url"
run: |
echo "ETH_RPC_URL=https://ethereum-rpc.publicnode.com" >> $GITHUB_ENV
- name: Run uniswap script
run: |
SP1_DEV=1 RUST_LOG=info cargo run --release --bin uniswap --ignore-rust-version
- name: Run multiplexer script
run: |
SP1_DEV=1 RUST_LOG=info cargo run --release --bin multiplexer --ignore-rust-version
test-e2e:
name: Test
runs-on: ["runs-on", "runner=64cpu-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 RPC url"
run: |
echo "ETH_RPC_URL=https://ethereum-rpc.publicnode.com" >> $GITHUB_ENV
- name: "Run integration test"
run: |
SP1_DEV=1 RUST_LOG=info cargo test -p sp1-cc-host-executor --release e2e -- --nocapture