-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
108 additions
and
66 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.idea/ | ||
.git/ | ||
target/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: ci | ||
on: push | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --verbose | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: asdf-vm/actions/install@v3 | ||
- name: Prepare | ||
shell: bash | ||
run: | | ||
sh scripts/0-venv.sh | ||
sh scripts/1-compile.sh | ||
sh scripts/2-merge.sh | ||
ls -Rl examples/ | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run prover | ||
run: cargo run -p prover -- --jwt-secret-key "asdf" --authorized-keys "0xd16b71c90dbf897e5964d2f267d04664b3c035036559d712994739ea6cf2fd9f" --message-expiration-time 60 --session-expiration-time 3600 | ||
- name: Run tests | ||
run: cargo test --workspace --verbose |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python 3.9.18 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
# Define the name of the virtual environment | ||
VENV_NAME=".venv" | ||
|
||
# Check if the virtual environment already exists | ||
if [ ! -d "$VENV_NAME" ]; then | ||
# If it doesn't exist, create the virtual environment | ||
python -m venv $VENV_NAME && \ | ||
python -m venv $VENV_NAME | ||
|
||
# Activate the virtual environment | ||
source $VENV_NAME/bin/activate && \ | ||
. $VENV_NAME/bin/activate | ||
|
||
# Upgrade pip to the latest version | ||
pip install --upgrade pip && \ | ||
pip install --upgrade pip | ||
|
||
# Install the required packages from the requirements.txt file | ||
pip install cairo-lang==0.13.1 && \ | ||
pip install sympy==1.12.1 | ||
pip install cairo-lang==0.13.1 | ||
|
||
# Deactivate the virtual environment | ||
deactivate | ||
else | ||
# If it does exist, print a message indicating that it already exists | ||
echo "Virtual environment $VENV_NAME already exists." | ||
fi | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .venv/bin/activate && \ | ||
set -eux | ||
|
||
. .venv/bin/activate | ||
|
||
mkdir -p resources | ||
|
||
cairo-compile \ | ||
examples/CairoZero/fibonacci.cairo \ | ||
--output resources/fibonacci_compiled.json \ | ||
--proof_mode && \ | ||
deactivate | ||
--proof_mode | ||
|
||
deactivate |
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
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