Skip to content

Commit 0fff67b

Browse files
committed
Check proofs with TLAPM pre-release.
Signed-off-by: Markus Alexander Kuppe <[email protected]>
1 parent 1119a82 commit 0fff67b

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

.github/scripts/linux-setup.sh

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ main() {
5151
wget -nv https://github.com/tlaplus/tlapm/archive/main.tar.gz -O /tmp/tlapm.tar.gz
5252
tar -xzf /tmp/tlapm.tar.gz --directory "$DEPS_DIR"
5353
mv "$DEPS_DIR/tlapm-main" "$DEPS_DIR/tlapm"
54+
# Install TLAPS
55+
wget -nv "https://github.com/tlaplus/tlapm/releases/download/1.6.0-pre/tlapm-1.6.0-pre-x86_64-linux-gnu.tar.gz" -O /tmp/tlapm.tar.gz
56+
tar -xzf /tmp/tlapm.tar.gz --directory "$DEPS_DIR"
5457
# Get TLAUC
5558
mkdir -p "$DEPS_DIR/tlauc"
5659
kernel=$(uname -s)
@@ -64,28 +67,6 @@ main() {
6467
fi
6568
wget -nv "https://github.com/tlaplus-community/tlauc/releases/latest/download/tlauc-$TLAUC_OS_STR.tar.gz" -O /tmp/tlauc.tar.gz
6669
tar -xzf /tmp/tlauc.tar.gz --directory "$DEPS_DIR/tlauc"
67-
# Install TLAPS
68-
if [ "$kernel" == "Linux" ]; then
69-
TLAPM_BIN_TYPE=x86_64-linux-gnu
70-
elif [ "$kernel" == "Darwin" ]; then
71-
TLAPM_BIN_TYPE=i386-darwin
72-
else
73-
echo "Unknown OS: $kernel"
74-
exit 1
75-
fi
76-
TLAPM_BIN="tlaps-1.5.0-$TLAPM_BIN_TYPE-inst.bin"
77-
wget -nv "https://github.com/tlaplus/tlapm/releases/latest/download/$TLAPM_BIN" -O /tmp/tlapm-installer.bin
78-
chmod +x /tmp/tlapm-installer.bin
79-
# Workaround for https://github.com/tlaplus/tlapm/issues/88
80-
set +e
81-
for ((attempt = 1; attempt <= 5; attempt++)); do
82-
rm -rf "$DEPS_DIR/tlapm-install"
83-
/tmp/tlapm-installer.bin -d "$DEPS_DIR/tlapm-install"
84-
if [ $? -eq 0 ]; then
85-
exit 0
86-
fi
87-
done
88-
exit 1
8970
}
9071

9172
main "$@"

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
specifications/byzpaxos/BPConProof.tla # Takes about 30 minutes
157157
)
158158
python $SCRIPT_DIR/check_proofs.py \
159-
--tlapm_path $DEPS_DIR/tlapm-install \
159+
--tlapm_path $DEPS_DIR/tlapm \
160160
--manifest_path manifest.json \
161161
--skip "${SKIP[@]}"
162162
- name: Smoke-test manifest generation script

0 commit comments

Comments
 (0)