Skip to content

Statically initialize operators table #159

Statically initialize operators table

Statically initialize operators table #159

Workflow file for this run

name: PullRequest builder TLA+
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
TLAPS_VERSION: 202210041448
MVN_COMMAND: xvfb-run mvn -Dtest.skip=true -Dmaven.test.failure.ignore=true
steps:
- uses: actions/checkout@v2
with:
# Number of commits to fetch. 0 indicates all history.
# jgit task nested in customBuild.xml fails without history.
fetch-depth: '0'
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0.3
##
## Run TLC tests.
##
- name: Run TLC tests
run: ant -f tlatools/org.lamport.tlatools/customBuild.xml -Dtest.halt=true compile compile-test test dist
##
## Build TLC and Toolbox (logger reduces verbosity).
##
- name: Build with Maven (Linux)
run: $MVN_COMMAND -Dtycho.disableP2Mirrors=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -fae -B verify --file pom.xml
##
## Trigger build of CommunityModule as integration tests.
##
- uses: actions/checkout@v2
with:
repository: tlaplus/CommunityModules
path: communitymodules/
# Number of commits to fetch. 0 indicates all history.
# jgit task nested in customBuild.xml fails without history.
fetch-depth: '0'
- name: Build CommunityModules
run: |
mkdir -p communitymodules/tlc
cp tlatools/org.lamport.tlatools/dist/tla2tools.jar communitymodules/tlc/
ant -f communitymodules/build.xml -Dskip.download=true
##
## Trigger run of examples as integration tests.
##
- uses: actions/checkout@v2
with:
repository: tlaplus/examples
path: examples/
# Number of commits to fetch. 0 indicates all history.
# jgit task nested in customBuild.xml fails without history.
fetch-depth: '0'
- name: Download tlaplus/examples test dependencies
run: |
# Get TLA⁺ community modules
wget https://github.com/tlaplus/CommunityModules/releases/latest/download/CommunityModules-deps.jar
# Get TLAPS
wget https://github.com/tlaplus/tlapm/archive/refs/tags/$TLAPS_VERSION.tar.gz
tar -xf $TLAPS_VERSION.tar.gz
rm $TLAPS_VERSION.tar.gz
mv tlapm-$TLAPS_VERSION tlapm
- name: Parse tlaplus/examples modules
run: |
python examples/.github/scripts/parse_modules.py \
--tools_jar_path tlatools/org.lamport.tlatools/dist/tla2tools.jar \
--tlapm_lib_path tlapm/library \
--community_modules_jar_path CommunityModules-deps.jar \
--manifest_path examples/manifest.json
- name: Model-check small tlaplus/examples models
run: |
python examples/.github/scripts/check_small_models.py \
--tools_jar_path tlatools/org.lamport.tlatools/dist/tla2tools.jar \
--tlapm_lib_path tlapm/library \
--community_modules_jar_path CommunityModules-deps.jar \
--manifest_path examples/manifest.json
- name: Smoke-test large tlaplus/examples models
run: |
# SimKnuthYao requires certain number of states to have been generated
# before termination or else it fails. This makes it not amenable to
# smoke testing.
python examples/.github/scripts/smoke_test_large_models.py \
--tools_jar_path tlatools/org.lamport.tlatools/dist/tla2tools.jar \
--tlapm_lib_path tlapm/library \
--community_modules_jar_path CommunityModules-deps.jar \
--manifest_path examples/manifest.json \
--skip specifications/KnuthYao/SimKnuthYao.cfg