Skip to content

Commit

Permalink
add a tlc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Oct 23, 2024
1 parent 85b07fb commit d0eea3b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tlc-model-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: TLA+ Model Checking

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
model_check:
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# Install Java (TLC requires Java to run)
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'

# Run the TLA+ Model Checker (TLC)
- name: Run TLC model checker
run: |
wget https://github.com/tlaplus/tlaplus/releases/latest/download/tla2tools.jar
java -cp tla2tools.jar tlc2.TLC -deadlock -config p2p.cfg p2p.tla

0 comments on commit d0eea3b

Please sign in to comment.