Skip to content

Commit

Permalink
Fix CI (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelchassot authored Sep 6, 2024
1 parent 1fce69f commit be4bf04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bolts-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
distribution: temurin
java-version: 17
cache: sbt
- name: Install stainless and solvers
run: ./install_stainless_and_solvers.sh $GITHUB_WORKSPACE/.local/bin $GITHUB_WORKSPACE/.local
- name: Add stainless to PATH
Expand All @@ -33,7 +34,7 @@ jobs:
- name: Test solvers availability
run: cvc5 --version && z3 --version && cvc4 --version
- name: Bolts Tests
run: ./run_tests.sh
run: ./run-tests.sh
fail_if_pull_request_is_draft:
if: github.event.pull_request.draft == true
runs-on: [self-hosted, linux]
Expand Down
14 changes: 8 additions & 6 deletions install_stainless_and_solvers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ mkdir -p "$SOLVERS_DIR"
mkdir -p "$TEMP_DIR"
mkdir -p "$STAINLESS_DIR"

# stainless
cd "$STAINLESS_DIR"
git clone --recurse-submodules https://github.com/epfl-lara/stainless
cd stainless
sbt universal:stage

# cvc5
wget https://github.com/cvc5/cvc5/releases/download/cvc5-1.1.2/cvc5-Linux-static.zip -O "$TEMP_DIR/downloaded.zip" -q
unzip "$TEMP_DIR/downloaded.zip" -d "$TEMP_DIR"
Expand All @@ -34,4 +28,12 @@ chmod +x "$SOLVERS_DIR/z3"
rm -rf "$TEMP_DIR"

echo "************** Solvers Installed **************"

# stainless
cd "$STAINLESS_DIR"
git clone --recurse-submodules https://github.com/epfl-lara/stainless
cd stainless
sbt universal:stage

echo "************** Stainless Installed **************"
exit 0

0 comments on commit be4bf04

Please sign in to comment.