File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 74
74
python "$SCRIPT_DIR/unicode_number_set_shim.py" \
75
75
--manifest_path manifest.json
76
76
- name : Translate PlusCal
77
- if : (!matrix.unicode) # PlusCal does not yet support unicode
77
+ # PlusCal translations will be reverted at the end of this step,
78
+ # since we want to support people manually editing the generated TLA+
79
+ # code in specs they submit as examples. However, running the PlusCal
80
+ # translator is currently the only way to ensure that specs contain
81
+ # valid PlusCal syntax. So, we have to run the translator and then
82
+ # discard the results. However, discarding the results with git reset
83
+ # also would discard the Unicode translation. So, only execute this
84
+ # step if we did not perform Unicode translation.
85
+ if : (!matrix.unicode)
78
86
run : |
79
87
# https://github.com/tlaplus/tlaplus/issues/906
80
88
SKIP=(
86
94
--tools_jar_path $DEPS_DIR/tools/tla2tools.jar \
87
95
--manifest_path manifest.json \
88
96
--skip "${SKIP[@]}"
89
- if [[ "${{ matrix.unicode }}" == "false" ]]; then
90
- git status
91
- git diff
92
- diff_count=$(git status --porcelain=v1 2>/dev/null | wc -l)
93
- exit $diff_count
94
- fi
97
+ git reset --hard HEAD # Restore specs to their original state
95
98
- name : Parse all modules
96
99
run : |
97
100
python $SCRIPT_DIR/parse_modules.py \
You can’t perform that action at this time.
0 commit comments