3535 run : |
3636 python3 -m pip install --upgrade pip
3737 pip install -r tests/dev.arcovia.mitigation.ranking.tests/scripts/uncertaintyRanking/requirements.txt
38- - name : Cache Z3 download/extract
39- uses : actions/cache@v4
40- with :
41- path : .z3
42- key : z3-${{ runner.os }}-${{ env.Z3_VER }}-${{ env.Z3_ARCH }}-glibc-${{ env.Z3_GLIBC }}
4338 - name : Download Z3 and copy jar and natives
4439 shell : bash
4540 run : |
@@ -48,25 +43,18 @@ jobs:
4843
4944 Z3_URL="https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VER}/z3-${Z3_VER}-${Z3_ARCH}-glibc-${Z3_GLIBC}.zip"
5045
46+ echo "Downloading $Z3_URL"
5147 mkdir -p .z3
52-
53- # Download only if missing from cache
54- if [ ! -f .z3/z3.zip ]; then
55- echo "Downloading Z3..."
56- curl -L --fail --retry 3 -o .z3/z3.zip "$Z3_URL"
57- else
58- echo "Using cached .z3/z3.zip"
59- fi
60-
48+ curl -L -o .z3/z3.zip "$Z3_URL"
49+ unzip -q .z3/z3.zip -d .z3
50+
51+ # Locate extracted bin directory
6152 BIN_DIR="$(find .z3 -type d -name bin -print -quit)"
62- # Extract only if bin dir not cached
63- if ! find .z3 -type d -name bin -print -quit | grep -q .; then
64- echo "Extracting Z3..."
65- unzip -q .z3/z3.zip -d .z3
66- else
67- echo "Using cached extraction"
53+ if [ -z "$BIN_DIR" ]; then
54+ echo "ERROR : Could not find bin directory"
55+ exit 1
6856 fi
69-
57+
7058 # Copy Java jar
7159 if [ ! -f "$BIN_DIR/com.microsoft.z3.jar" ]; then
7260 echo "ERROR : com.microsoft.z3.jar not found"
0 commit comments