Skip to content

Commit

Permalink
Fix CI to build legacy exn spec
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Nov 10, 2023
1 parent 123ac59 commit 96842a8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ jobs:
name: core-rendered
path: document/core/_build/html

build-legacy-exceptions-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup TexLive
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Setup Sphinx
run: pip install six && pip install sphinx==5.1.0
- name: Build main spec
run: cd document/legacy/exceptions && make main
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: legacy-exceptions-rendered
path: document/core/_build/html

build-js-api-spec:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -84,6 +103,11 @@ jobs:
with:
name: core-rendered
path: _output/core
- name: Download legacy exceptions spec artifact
uses: actions/download-artifact@v2
with:
name: legacy-exceptions-rendered
path: _output/core
- name: Download JS API spec artifact
uses: actions/download-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions document/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ <h3>Legacy Extensions</h3>
<li><p><b>Legacy Exception Handling</b>: defines additional instructions for exception handling that may still be available in some engines and tools, specifically web browsers.</p>
<ul>
<li><a href="legacy/exceptions/">Browser version</a></li>
<li><a href="legacy/exceptions/_download/WebAssembly.pdf">PDF version</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion document/legacy/exceptions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PAPER = a4
BUILDDIR = _build
STATICDIR = _static
DOWNLOADDIR = _download
NAME = WebAssembly
NAME = WebAssembly-Legacy-Exceptions

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
Expand Down
8 changes: 4 additions & 4 deletions document/legacy/exceptions/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
master_doc = 'index'

# General information about the project.
name = 'WebAssembly'
project = u'WebAssembly'
name = 'WebAssembly-Legacy-Exceptions'
project = u'WebAssembly-Legacy-Exceptions'
title = u'WebAssembly Specification Addendum: Legacy Exception Handling'
copyright = u'2023, WebAssembly Community Group'
author = u'WebAssembly Community Group'
Expand All @@ -76,7 +76,7 @@
# built documents.
#
# The short X.Y version.
version = u'0.1'
version = u'1.0'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down Expand Up @@ -174,7 +174,7 @@
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
html_title = project + u' ' + release
html_title = u'WebAssembly Legacy Exceptions'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
2 changes: 0 additions & 2 deletions document/legacy/exceptions/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ WebAssembly Specification Addendum: Legacy Exception Handling

.. only:: html

| Release |release|
| Editor: Andreas Rossberg
| Latest Draft: |WasmDraft|
Expand Down

0 comments on commit 96842a8

Please sign in to comment.