Execution precheckin for change by ctian1 #4
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
name: checks | |
run-name: Execution precheckin for change by ${{ github.actor }} | |
on: | |
pull_request: | |
push: | |
branches: | |
- chris/test-ci | |
jobs: | |
test-prove: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: rust-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
~/.rustup/ | |
key: rust-nightly-2024-04-17-${{ hashFiles('**/Cargo.toml') }} | |
restore-keys: rust-nightly-2024-04-17- | |
- name: Setup toolchain | |
id: rustc-toolchain | |
shell: bash | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly-2024-04-17 -y | |
- name: Install SP1 | |
run: | | |
curl -L https://sp1.succinct.xyz | bash | |
export BASE_DIR=${XDG_CONFIG_HOME:-$HOME} | |
export SP1_DIR=$BASE_DIR/.sp1 | |
echo "SP1_DIR=$SP1_DIR" >> $GITHUB_ENV | |
echo "SP1_DIR=$SP1_DIR" | |
$SP1_DIR/bin/sp1up | |
$SP1_DIR/bin/cargo-prove prove --version |