Skip to content

Commit ec17f2a

Browse files
committed
Fall back to Apalache v0.52.2 if latest download fails
Related to Github issue #1353 tlaplus/tlaplus#1353 Related to Github issue #3282 apalache-mc/apalache#3282 [Build] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
1 parent 9ac1cdc commit ec17f2a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/scripts/linux-setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ main() {
4242
mkdir -p "$DEPS_DIR/tools"
4343
wget -nv http://nightly.tlapl.us/dist/tla2tools.jar -P "$DEPS_DIR/tools"
4444
# Get Apalache
45-
wget -nv https://github.com/informalsystems/apalache/releases/latest/download/apalache.tgz -O /tmp/apalache.tgz
45+
APALACHE_LATEST="https://github.com/apalache-mc/apalache/releases/latest/download/apalache.tgz"
46+
APALACHE_FALLBACK="https://github.com/apalache-mc/apalache/releases/download/v0.52.2/apalache.tgz"
47+
wget -nv "$APALACHE_LATEST" -O /tmp/apalache.tgz || wget -nv "$APALACHE_FALLBACK" -O /tmp/apalache.tgz
4648
tar -xzf /tmp/apalache.tgz --directory "$DEPS_DIR"
4749
# Get TLA⁺ community modules
4850
mkdir -p "$DEPS_DIR/community"

.github/scripts/windows-setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ main() {
3838
mkdir -p "$DEPS_DIR/tools"
3939
curl http://nightly.tlapl.us/dist/tla2tools.jar --output "$DEPS_DIR/tools/tla2tools.jar"
4040
# Get Apalache
41-
curl -L https://github.com/informalsystems/apalache/releases/latest/download/apalache.zip --output apalache.zip
41+
APALACHE_LATEST="https://github.com/apalache-mc/apalache/releases/latest/download/apalache.zip"
42+
APALACHE_FALLBACK="https://github.com/apalache-mc/apalache/releases/download/v0.52.2/apalache.zip"
43+
curl -L --fail "$APALACHE_LATEST" --output apalache.zip || curl -L --fail "$APALACHE_FALLBACK" --output apalache.zip
4244
7z x apalache.zip
4345
mv apalache "$DEPS_DIR/"
4446
rm apalache.zip

0 commit comments

Comments
 (0)