Skip to content

Commit

Permalink
ci: check lock files in ci (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwen01 authored Nov 6, 2024
1 parent eab0388 commit 4414c05
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,4 +414,32 @@ jobs:

- name: Check build
run: cargo check --target riscv32imac-unknown-none-elf --no-default-features -p sp1-verifier


lock-files:
name: "Check lock files"
runs-on: ["runs-on", "runner=8cpu-linux-x64", "hdd=150", "run-id=${{ github.run_id }}"]
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: "Checkout sources"
uses: "actions/checkout@v4"

- name: Setup CI
uses: ./.github/actions/setup

- name: "Remove lock files"
run: |
find -name Cargo.lock -type f -exec rm {} \;
- name: "Build SP1 without lock files"
run: |
cargo build --all --all-targets
- name: Install SP1 toolchain
run: |
cargo run -p sp1-cli -- prove install-toolchain
- name: "Build examples without lock files"
run: |
cd examples
cargo build --all --all-targets

0 comments on commit 4414c05

Please sign in to comment.