Skip to content

Commit

Permalink
Do not build the Isabelle document when building heaps.
Browse files Browse the repository at this point in the history
Signed-off-by: Karolis Petrauskas <[email protected]>
  • Loading branch information
kape1395 committed Dec 23, 2023
1 parent 280559e commit ce9a64b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if: matrix.operating-system == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install --yes time texlive-latex-base texlive-plain-generic
sudo apt-get install --yes time
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
if: matrix.operating-system == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install --yes time texlive-latex-base texlive-plain-generic
sudo apt-get install --yes time
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
if: matrix.operating-system == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install --yes time texlive-latex-base texlive-plain-generic
sudo apt-get install --yes time
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions deps/isabelle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ $(ISABELLE_DIR)/src/TLA+: $(ISABELLE_DIR)
&& cp -a theories/TLA+/* $(ISABELLE_DIR)/src/TLA+/ \
&& chmod -R u+w $(ISABELLE_DIR)/src/TLA+/
cd $(ISABELLE_DIR)/ \
&& ./bin/isabelle build -b -v -d src/Pure -o system_heaps Pure \
&& ./bin/isabelle build -b -v -d src/TLA+ -o system_heaps TLA+
&& ./bin/isabelle build -o system_heaps -o document=false -b -v -d src/Pure Pure \
&& ./bin/isabelle build -o system_heaps -o document=false -b -c -v -d src/TLA+ TLA+
cd $(ISABELLE_DIR) \
&& rm etc/settings \
&& mv etc/settings.target etc/settings
Expand Down
7 changes: 5 additions & 2 deletions isabelle/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: rebuild clean
.PHONY: rebuild heap-only clean

# Generate theory information (in HTML and PDF formats) as well as the main
# heap file for the TLA+ object logic. By default these will be generated
Expand All @@ -7,7 +7,10 @@
# file etc/settings beneath the Isabelle home (i.e., where the Isabelle
# distribution is installed).
rebuild:
isabelle build -b -v -D .
isabelle build -o document -o browser_info -b -c -v -D .

heap-only:
isabelle build -o document=false -o browser_info=false -b -c -v -D .

clean:
rm -rf output/
2 changes: 1 addition & 1 deletion isabelle/ROOT
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(* build the session using "isabelle build -b -D ." *)
chapter "TLA+"
session "TLA+" = "Pure" +
options [document=pdf, document_output = "output", document_variants="document:outline=/proof"]
options [document_output = "output", document_variants="document:outline=/proof"]

theories
Constant (global)
Expand Down

0 comments on commit ce9a64b

Please sign in to comment.