Skip to content

Commit

Permalink
kontrol wiuth foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Nov 16, 2024
1 parent 7437546 commit 73c4afc
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
fetch-depth: 0
submodules: recursive

# Install Foundry first
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install forge-std and build
run: |
forge install foundry-rs/forge-std --no-commit
forge build --build-info --force
forge remappings > remappings.txt
- name: Install System Dependencies
run: |
sudo apt-get update
Expand Down Expand Up @@ -100,6 +112,10 @@ jobs:
fi
fi
# Verify forge is available
echo "Verifying forge installation:"
forge --version
# Show available profiles
echo "Available configuration profiles:"
kontrol prove --list-profiles || echo "No profiles configured"
Expand All @@ -111,10 +127,15 @@ jobs:
# Debug: Show working directory and files
echo "Current directory: $(pwd)"
echo "Contracts directory content:"
ls -R ./src
ls -R ./src/contracts
echo "Specification directory content:"
ls -R ./src/test/kontrol
# Verify forge is in PATH
echo "Verifying forge is available:"
which forge
forge --version
# Step 1: Build Kontrol project
echo "Building Kontrol project..."
kontrol build || {
Expand Down Expand Up @@ -157,4 +178,5 @@ jobs:
verification-results/
.build/
.kontrol/
out/
retention-days: 5

0 comments on commit 73c4afc

Please sign in to comment.