Skip to content

Commit

Permalink
feat(.github): setup redis
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Jan 7, 2025
1 parent 941e104 commit a9c3fdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-build-test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ jobs:
- name: Build ${{ inputs.version_name }} prover
run: make build

- name: Setup Redis service
uses: shogo82148/actions-setup-redis@v1
- name: Test ${{ inputs.version_name }} prover
run: make test
9 changes: 7 additions & 2 deletions script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ if [ "$CPU_OPT" = "1" ]; then
echo "Enable cpu optimization with host RUSTFLAGS"
fi

# install cargo-nextest if not installed
if ! cargo nextest --version >/dev/null 2>&1; then
cargo install cargo-nextest@0.9.85 --locked
fi

# NATIVE
if [ -z "$1" ] || [ "$1" == "native" ]; then
if [ -n "${CLIPPY}" ]; then
Expand All @@ -56,15 +61,15 @@ if [ -z "$1" ] || [ "$1" == "native" ]; then
cargo build ${FLAGS} -F $TASKDB
else
echo "Building native tests"
cargo test ${FLAGS} --no-run -F $TASKDB
cargo nextest run ${FLAGS} --no-run -F $TASKDB
fi
else
if [ -z "${TEST}" ]; then
echo "Running native prover"
cargo run ${FLAGS} -F $TASKDB
else
echo "Running native tests"
cargo test ${FLAGS} -F $TASKDB
cargo nextest run ${FLAGS} -F $TASKDB
fi
fi
fi
Expand Down

0 comments on commit a9c3fdf

Please sign in to comment.