Skip to content

Commit bce1dc2

Browse files
committed
CI: check proofs using find | jq | xargs bash pipeline
Signed-off-by: Andrew Helwer <ahelwer@pm.me>
1 parent b05b8ff commit bce1dc2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/CI.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,16 @@ jobs:
135135
- name: Check proofs
136136
if: matrix.os != 'windows-latest' && !matrix.unicode
137137
run: |
138-
# Extract community modules for TLAPM
139-
mkdir -p $DEPS_DIR/community/modules
140-
unzip -q -o $DEPS_DIR/community/modules.jar -d $DEPS_DIR/community/modules
141-
python $SCRIPT_DIR/check_proofs.py \
142-
--tlapm_path $DEPS_DIR/tlapm \
143-
--community_modules_path $DEPS_DIR/community/modules \
144-
--examples_root .
138+
set -o pipefail
139+
find specifications -iname "manifest.json" -print0 \
140+
| xargs --verbose --null --no-run-if-empty \
141+
jq --join-output \
142+
'.modules
143+
| map(select(has("proof")))
144+
| map(.path)
145+
| "\(join("\u0000"))\u0000"' \
146+
| xargs --verbose --null --no-run-if-empty --replace={TLA_FILE} sh -c \
147+
'$DEPS_DIR/tlapm/bin/tlapm {TLA_FILE} -I $(dirname {TLA_FILE}) --stretch 5'
145148
- name: Smoke-test manifest generation script
146149
run: |
147150
python $SCRIPT_DIR/generate_manifest.py \

0 commit comments

Comments
 (0)