Merge branch 'propose_vote_request' of https://github.com/achamayou/C… #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "TLA+ Spec Verification" | |
on: | |
push: | |
paths: | |
- "tla/**" | |
pull_request: | |
paths: | |
- "tla/**" | |
workflow_dispatch: | |
jobs: | |
model-checking: | |
name: Model Checking | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python ./tla/install_deps.py | |
- name: MCccfraft.cfg | |
run: | | |
set -exo pipefail | |
cd tla/ | |
./tlc.sh -workers auto MCccfraft.tla 2>&1 | tee MCccfraft.out | |
- name: MCccfraftWithReconfig.cfg | |
run: | | |
set -exo pipefail | |
cd tla/ | |
./tlc.sh -workers auto -config MCccfraftWithReconfig.cfg MCccfraft.tla 2>&1 | tee MCccfraftWithReconfig.out | |
- name: Upload TLC's out file as an artifact. Can be imported into the TLA+ Toolbox. | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() }} | |
with: | |
name: tlc | |
path: tla/*.out | |
simulation: | |
name: Simulation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python ./tla/install_deps.py | |
- name: SIMccfraft.tla | |
run: | | |
set -exo pipefail | |
cd tla/ | |
./tlc.sh -workers auto -simulate -depth 500 SIMccfraft.tla 2>&1 | tee SIMccfraft.out | |
- name: Upload TLC's out file as an artifact. Can be imported into the TLA+ Toolbox. | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() }} | |
with: | |
name: tlc | |
path: tla/*.out |