From 769ba166d878086c485c1473a5ef42686c1e4003 Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Tue, 19 Nov 2024 17:34:10 +0800 Subject: [PATCH] Parallelise running --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f07f0a8..8d000bbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,5 +56,45 @@ jobs: ) done + legacy-scripts: + name: Run legacy scripts + timeout-minutes: 30 + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@master + with: + components: rustfmt + # TODO(Matthias): see whether we can keep this in sync with rust-toolchain.toml automatically? + toolchain: nightly-2024-10-03 + - name: Cargo cache + uses: actions/cache@v3 + with: + # target directories gotten via + # `find . -name target -type d -not -path '*/src/*' -printf '%P\n' | sort` + # We need to exclude `./circ_blocks/src/target` because it just a source directory with an unfortunate name. + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + circ_blocks/circ_fields/target + circ_blocks/circ_hc/target + circ_blocks/circ_opt/target + circ_blocks/circ_waksman/target + circ_blocks/target + circ_blocks/third_party/ZoKrates/zokrates_parser/target + circ_blocks/third_party/ZoKrates/zokrates_pest_ast/target + circ_blocks/third_party/ZoKrates/zokrates_stdlib/target + ff/ff_derive/target + ff/target + spartan_parallel/target + zok_tests/poseidon_gen/target + key: scripts-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }} + + - name: Run legacy scripts + run: | + set -euxo pipefail ./setup.sh ./encode_ceno.sh