Skip to content

Commit 3c001a5

Browse files
committed
Merge branch 'main' into wasm-3.0
2 parents 7eae1f4 + 04a39c5 commit 3c001a5

File tree

9 files changed

+85
-14
lines changed

9 files changed

+85
-14
lines changed

.github/workflows/ci-spec.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,27 @@ jobs:
124124
name: legacy-exceptions-js-api-rendered
125125
path: document/legacy/exceptions/js-api/index.html
126126

127+
build-spec-versions:
128+
runs-on: ubuntu-latest
129+
steps:
130+
- name: Checkout repo
131+
uses: actions/checkout@v2
132+
- name: Upload artifacts
133+
uses: actions/upload-artifact@v4
134+
with:
135+
name: versions-rendered
136+
path: document/versions/
137+
127138
publish-spec:
128139
runs-on: ubuntu-latest
129-
needs: [build-core-spec, build-js-api-spec, build-web-api-spec, build-code-metadata-spec, build-legacy-exceptions-core-spec, build-legacy-exceptions-js-api-spec]
140+
needs:
141+
- build-core-spec
142+
- build-js-api-spec
143+
- build-web-api-spec
144+
- build-code-metadata-spec
145+
- build-legacy-exceptions-core-spec
146+
- build-legacy-exceptions-js-api-spec
147+
- build-spec-versions
130148
steps:
131149
- name: Checkout repo
132150
uses: actions/checkout@v2
@@ -162,6 +180,11 @@ jobs:
162180
with:
163181
name: legacy-exceptions-js-api-rendered
164182
path: _output/legacy/exceptions/js-api
183+
- name: Download spec versions artifacts
184+
uses: actions/download-artifact@v4
185+
with:
186+
name: versions-rendered
187+
path: _output/versions
165188
- name: Publish to GitHub Pages
166189
if: github.ref == 'refs/heads/main'
167190
uses: peaceiris/actions-gh-pages@v3

.github/workflows/w3c-publish.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,23 @@ on:
55
branches: [ main ]
66
paths: [ .github/**, document/** ]
77

8-
# Allows you to run this workflow manually from the Actions tab
8+
# Allows you to run this workflow manually from the Actions tab, gh CLI tool,
9+
# or REST API. THe w3c-status options correspond to the valid options for
10+
# Bikeshed's --md-status flag, and refer to the W3C rec-track document
11+
# stages described in https://www.w3.org/policies/process/#maturity-stages
12+
# (Editor's Draft, Working Draft, Candidiate Recommendation Draft, and
13+
# Candidate Recommendation Snapshot).
914
workflow_dispatch:
1015
inputs:
1116
w3c-status:
1217
required: true
13-
type: string
18+
type: choice
19+
description: W3C Document Status
20+
options:
21+
- ED
22+
- WD
23+
- CRD
24+
- CR
1425

1526
jobs:
1627
publish-to-w3c-TR:
@@ -34,7 +45,7 @@ jobs:
3445
- name: Publish all specs to their https://www.w3.org/TR/ URLs
3546
run: cd document && make -e WD-echidna-CI
3647
env:
37-
W3C_STATUS: ${{ github.event_name == 'push' && 'WD' || inputs.w3c-status }}
48+
W3C_STATUS: ${{ github.event_name == 'push' && 'CRD' || inputs.w3c-status }}
3849
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
3950
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
4051
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}

document/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DIRS = core js-api web-api metadata/code legacy/exceptions
1+
DIRS = core js-api web-api metadata/code legacy/exceptions versions
22
FILES = index.html
33
BUILDDIR = _build
44
TAR = tar
@@ -60,7 +60,7 @@ $(DIRS:%=build-%): build-%:
6060
(cd $(@:build-%=%); make BUILDDIR=$(BUILDDIR) all)
6161

6262
.PHONY: $(DIRS:%=dir-%)
63-
$(DIRS:%=dir-%): dir-%:
63+
$(DIRS:%=dir-%): dir-%: $(BUILDDIR)
6464
mkdir -p $(BUILDDIR)/$(@:dir-%=%)
6565
rm -rf $(BUILDDIR)/$(@:dir-%=%)/*
6666
cp -R $(@:dir-%=%)/$(BUILDDIR)/html/* $(BUILDDIR)/$(@:dir-%=%)/

document/core/text/instructions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ Vector constant instructions have a mandatory :ref:`shape <syntax-vec-shape>` de
950950
\text{i32x4.all\_true} &\Rightarrow& \I32X4.\ALLTRUE\\ &&|&
951951
\text{i32x4.bitmask} &\Rightarrow& \I32X4.\BITMASK\\ &&|&
952952
\text{i32x4.extadd\_pairwise\_i16x8\_s} &\Rightarrow& \I32X4.\EXTADDPAIRWISE\K{\_i16x8\_s}\\ &&|&
953+
\text{i32x4.extadd\_pairwise\_i16x8\_u} &\Rightarrow& \I32X4.\EXTADDPAIRWISE\K{\_i16x8\_u}\\ &&|&
953954
\text{i32x4.extend\_low\_i16x8\_s} &\Rightarrow& \I32X4.\VEXTEND\K{\_low\_i16x8\_s}\\ &&|&
954955
\text{i32x4.extend\_high\_i16x8\_s} &\Rightarrow& \I32X4.\VEXTEND\K{\_high\_i16x8\_s}\\ &&|&
955956
\text{i32x4.extend\_low\_i16x8\_u} &\Rightarrow& \I32X4.\VEXTEND\K{\_low\_i16x8\_u}\\ &&|&

document/index.html

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@
1414
<div id="readme" class="readme blob isntapaper_body">
1515
<article class="markdown-body entry-content">
1616

17+
1718
<h1>WebAssembly Specifications</h1>
1819

1920
<p>
2021
To support the <em>embedding</em> of WebAssembly into different environments, its specification is split into <em>layers</em> that are specified in separate documents.
2122
</p>
2223

23-
<h3>Core specification</h3>
24+
<p>
25+
Source for these documents is available
26+
<a href="https://github.com/WebAssembly/spec/">here</a>.
27+
</p>
28+
29+
30+
<h3>Core Specification</h3>
2431

2532
<p>Defines the semantics of WebAssembly modules independent from a concrete embedding.
2633
The WebAssembly core is specified in a single document:</p>
@@ -41,12 +48,13 @@ <h3>Core specification</h3>
4148
</li>
4249
</ul>
4350

44-
<h3>Embedder specifications</h3>
51+
52+
<h3>Embedder Specifications</h3>
4553

4654
<p>Define <em>application programming interfaces</em> (APIs) enabling the use of WebAssembly modules in concrete embedding environments.
4755
Currently, two APIs are specified:</p>
4856

49-
<ul>
57+
<ul>
5058
<li><p><b>JavaScript Embedding</b>: defines JavaScript classes and objects for accessing WebAssembly from within JavaScript, including methods for validation, compilation, instantiation, and classes for representing and manipulating imports and exports as JavaScript objects.</p>
5159
<ul>
5260
<li><a href="js-api/">W3C version</a></li>
@@ -60,7 +68,8 @@ <h3>Embedder specifications</h3>
6068
<!-- <li><a href="https://github.com/WebAssembly/spec/document/web-api/">Sources</a></li> -->
6169
</ul>
6270
</li>
63-
</ul>
71+
</ul>
72+
6473

6574
<h3>Metadata specifications</h3>
6675

@@ -97,10 +106,14 @@ <h3>Legacy Extensions</h3>
97106
</li>
98107
</ul>
99108

100-
<p>
101-
Source for all documents is available
102-
<a href="https://github.com/WebAssembly/spec/">here</a>.
103-
</p>
109+
110+
<h3>All Versions</h3>
111+
112+
<ul>
113+
<li><a href="versions/core/WebAssembly-1.0.pdf">WebAssembly 1.0</a> (2017)</li>
114+
<li><a href="versions/core/WebAssembly-2.0.pdf">WebAssembly 2.0</a> (2022)</li>
115+
<li><a href="versions/core/WebAssembly-3.0-draft.pdf">WebAssembly 3.0</a> (Draft 2024)</li>
116+
</ul>
104117

105118
</article>
106119
</div>

document/versions/Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
DIRS = core
2+
DIRNAME = versions
3+
BUILDDIR = _build
4+
5+
.PHONY: all
6+
all:
7+
mkdir -p $(BUILDDIR)/html/$(DIRNAME)
8+
cp -R $(DIRS) $(BUILDDIR)/html/$(DIRNAME)/
9+
10+
.PHONY: WD-tar
11+
WD-tar:
12+
13+
.PHONY: WD-echidna
14+
WD-echidna:
15+
16+
.PHONY: WD-echidna-CI
17+
WD-echidna-CI:
18+
19+
.PHONY: diff
20+
diff:
21+
22+
.PHONY: clean
23+
clean:
1.11 MB
Binary file not shown.
1.43 MB
Binary file not shown.
2.09 MB
Binary file not shown.

0 commit comments

Comments
 (0)