From 1674ccc1eeb1d387b472630d4a3658bd1908f632 Mon Sep 17 00:00:00 2001 From: srdtrk Date: Fri, 21 Jun 2024 19:02:26 +0400 Subject: [PATCH] ci: added Program workflow --- .github/workflows/program.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/program.yml diff --git a/.github/workflows/program.yml b/.github/workflows/program.yml new file mode 100644 index 000000000..5c601d0 --- /dev/null +++ b/.github/workflows/program.yml @@ -0,0 +1,33 @@ +name: Program + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + +env: + FOUNDRY_PROFILE: ci + +jobs: + check: + strategy: + fail-fast: true + + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install SP1 toolchain + run: | + curl -L https://sp1.succinct.xyz | bash + ~/.sp1/bin/sp1up + ~/.sp1/bin/cargo-prove prove --version + + - name: Build SP1 program + run: | + cd program + ~/.sp1/bin/cargo-prove prove build --release