Skip to content

Commit

Permalink
ci.sh: print used image versions and set defaults
Browse files Browse the repository at this point in the history
Set default versions for two used images:
```
nilfoundation/zkllvm-template
nilfoundation/proof-market-toolchain
```
These versions match ones in ./github/main.yml and should be updated
together.

With defaults, the script can be used without CI environment and
without setting env variables explicitly.

Resolves #34
  • Loading branch information
NickVolynkin committed Jun 30, 2023
1 parent 59739ae commit 6f5979f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ set -euxo pipefail
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
REPO_ROOT="$SCRIPT_DIR/.."

# Set image versions in the environment before running this script:
# export ZKLLVM_VERSION=0.0.58
# export TOOLCHAIN_VERSION=0.0.31

# If unset, default values will be used:
echo "using nilfoundation/zkllvm-template:${ZKLLVM_VERSION:=0.0.58}"
echo "using nilfoundation/proof-market-toolchain:${TOOLCHAIN_VERSION:=0.0.31}"

# podman is a safer option for using on CI machines
if ! command -v podman; then
DOCKER="docker"
Expand Down

0 comments on commit 6f5979f

Please sign in to comment.