From c1a2bfb5c186ae2927f55e219241682d588148e8 Mon Sep 17 00:00:00 2001 From: Aaron Tomb Date: Thu, 8 Jul 2021 13:10:31 -0700 Subject: [PATCH] Attempt to fix CVC4 and Docker upload issues (#1230) We will need a better solution to getting CVC4 eventually, but unbreaking the builds, even temporarily, is high priority. And the right solution for CVC4, with the recent transition to CVC5, is somewhat tricky. --- .github/ci.sh | 5 +++-- .github/workflows/ci.yml | 6 +++--- Dockerfile | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/ci.sh b/.github/ci.sh index c44de33a7..1344d2352 100755 --- a/.github/ci.sh +++ b/.github/ci.sh @@ -71,8 +71,9 @@ install_cvc4() { esac # Temporary workaround if [[ "$RUNNER_OS" == "Linux" ]]; then - latest="$(curl -sSL "http://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/" | grep linux-opt | tail -n1 | sed -e 's/.*href="//' -e 's/\([^>]*\)">.*$/\1/')" - curl -o cvc4$EXT -sSL "https://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/$latest" + #latest="$(curl -sSL "http://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/" | grep linux-opt | tail -n1 | sed -e 's/.*href="//' -e 's/\([^>]*\)">.*$/\1/')" + latest="cvc4-2021-03-13-x86_64-linux-opt" + curl -o cvc4 -sSL "https://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/$latest" else curl -o cvc4$EXT -sSL "https://github.com/CVC4/CVC4/releases/download/$version/cvc4-$version-$file" fi diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d8627fe8..140beec4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -395,13 +395,13 @@ jobs: - if: needs.config.outputs.event-schedule == 'true' name: ${{ matrix.image }}:nightly run: | - docker tag ${{ matrix.image }}:$COMMON_TAG ${{ matrix.image }}:nightly + docker tag ${{ matrix.image }}:${{ steps.common-tag.outputs.common-tag }} ${{ matrix.image }}:nightly docker push ${{ matrix.image }}:nightly - if: needs.config.outputs.release == 'true' name: ${{ matrix.image }}:${{ needs.config.outputs.version }} run: | - docker tag ${{ matrix.image }}:$COMMON_TAG ${{ matrix.image }}:${{ needs.config.outputs.version }} + docker tag ${{ matrix.image }}:${{ steps.common-tag.outputs.common-tag }} ${{ matrix.image }}:${{ needs.config.outputs.version }} docker push ${{ matrix.image }}:${{ needs.config.outputs.version }} - docker tag ${{ matrix.image }}:$COMMON_TAG ${{ matrix.image }}:latest + docker tag ${{ matrix.image }}:${{ steps.common-tag.outputs.common-tag }} ${{ matrix.image }}:latest docker push ${{ matrix.image }}:latest diff --git a/Dockerfile b/Dockerfile index 5d38c3163..58739509a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,8 @@ RUN curl -L https://yices.csl.sri.com/releases/2.6.2/yices-2.6.2-x86_64-pc-linux # Install CVC4 1.8 # The latest CVC4 1.8 and the release version has a minor discrepency between it, causing sbv to fail # https://github.com/CVC4/CVC4/releases/download/1.8/cvc4-1.8-x86_64-linux-opt -RUN latest="$(curl -sSL 'http://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/' | grep linux-opt | tail -n1 | sed -e 's/.*href="//' -e 's/\([^>]*\)">.*$/\1/')" && \ +#RUN latest="$(curl -sSL 'http://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/' | grep linux-opt | tail -n1 | sed -e 's/.*href="//' -e 's/\([^>]*\)">.*$/\1/')" && \ +RUN latest="cvc4-2021-03-13-x86_64-linux-opt" && \ curl --output rootfs/usr/local/bin/cvc4 -sSL "https://cvc4.cs.stanford.edu/downloads/builds/x86_64-linux-opt/unstable/$latest" # Install MathSAT 5.6.3 - Uncomment if you are in compliance with MathSAT's license.