Skip to content

Commit d05ce72

Browse files
authored
Upgrade to TLAUC 1.0.0 (#140)
Signed-off-by: Andrew Helwer <[email protected]>
1 parent 4f8aec2 commit d05ce72

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/scripts/linux-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ main() {
5959
echo "Unknown OS: $kernel"
6060
exit 1
6161
fi
62-
wget -nv "https://github.com/tlaplus-community/tlauc/releases/download/v0.2.0/tlauc-$TLAUC_OS_STR.tar.gz" -O /tmp/tlauc.tar.gz
62+
wget -nv "https://github.com/tlaplus-community/tlauc/releases/latest/download/tlauc-$TLAUC_OS_STR.tar.gz" -O /tmp/tlauc.tar.gz
6363
tar -xzf /tmp/tlauc.tar.gz --directory "$DEPS_DIR/tlauc"
6464
# Install TLAPS
6565
if [ "$kernel" == "Linux" ]; then

.github/scripts/unicode_conversion.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
logging.basicConfig(level = logging.DEBUG if args.verbose else logging.INFO)
2424

2525
tlauc_path = normpath(args.tlauc_path)
26-
command = 'ascii' if args.to_ascii else 'unicode'
26+
to_ascii = args.to_ascii
2727
manifest_path = normpath(args.manifest_path)
2828
examples_root = dirname(manifest_path)
2929
skip_modules = [normpath(path) for path in args.skip]
@@ -44,9 +44,9 @@
4444
logging.info(f'Skipping {path}')
4545

4646
def convert_module(module_path):
47-
logging.info(f'Converting {module_path} to {command}')
47+
logging.info(f'Converting {module_path}')
4848
result = subprocess.run(
49-
[tlauc_path, command, '--input', module_path, '--output', module_path, '--overwrite'],
49+
[tlauc_path, module_path] + (['--ascii'] if to_ascii else []),
5050
stdout=subprocess.PIPE,
5151
stderr=subprocess.STDOUT,
5252
text=True
@@ -64,7 +64,7 @@ def convert_module(module_path):
6464

6565
success = True
6666
thread_count = cpu_count() if not args.verbose else 1
67-
logging.info(f'Converting using {thread_count} threads')
67+
logging.info(f'Converting specs to {"ASCII" if to_ascii else "Unicode"} using {thread_count} threads')
6868
with ThreadPoolExecutor(thread_count) as executor:
6969
results = executor.map(convert_module, modules)
7070
exit(0 if all(results) else 1)

.github/scripts/windows-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ main() {
4747
rm tlapm.zip
4848
# Get TLAUC
4949
mkdir -p "$DEPS_DIR/tlauc"
50-
curl -L https://github.com/tlaplus-community/tlauc/releases/download/v0.2.0/tlauc-windows.zip --output tlauc.zip
50+
curl -L https://github.com/tlaplus-community/tlauc/releases/latest/download/tlauc-windows.zip --output tlauc.zip
5151
7z x tlauc.zip
5252
mv tlauc.exe "$DEPS_DIR/tlauc/"
5353
rm tlauc.zip

0 commit comments

Comments
 (0)