Skip to content

Commit a929dc4

Browse files
authored
Merge pull request WebAssembly#90 from dhil/wasm-3.0
Merge with WebAssembly/spec branch `wasm-3.0`
2 parents 0b1af70 + 264d2ad commit a929dc4

File tree

191 files changed

+10674
-1290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+10674
-1290
lines changed

.github/workflows/ci-spec.yml

Lines changed: 96 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,44 @@ jobs:
3535
- name: Run Bikeshed
3636
run: cd document/core && make bikeshed
3737
- name: Upload artifact
38-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: core-rendered
4141
path: document/core/_build/html
4242

43-
build-legacy-exceptions-spec:
43+
build-js-api-spec:
4444
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout repo
47+
uses: actions/checkout@v2
48+
- name: Setup Bikeshed
49+
run: pip install bikeshed && bikeshed update
50+
- name: Run Bikeshed
51+
run: bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
52+
- name: Upload artifact
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: js-api-rendered
56+
path: document/js-api/index.html
57+
58+
build-web-api-spec:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Checkout repo
62+
uses: actions/checkout@v2
63+
- name: Setup Bikeshed
64+
run: pip install bikeshed && bikeshed update
65+
- name: Run Bikeshed
66+
run: bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
67+
- name: Upload artifact
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: web-api-rendered
71+
path: document/web-api/index.html
72+
73+
build-code-metadata-spec:
74+
runs-on: ubuntu-latest
75+
needs: [build-core-spec]
4576
steps:
4677
- name: Checkout repo
4778
uses: actions/checkout@v2
@@ -52,71 +83,108 @@ jobs:
5283
- name: Setup Sphinx
5384
run: pip install six && pip install sphinx==5.1.0
5485
- name: Build main spec
55-
run: cd document/legacy/exceptions && make main
86+
run: cd document/metadata/code && make main
5687
- name: Upload artifact
57-
uses: actions/upload-artifact@v2
88+
uses: actions/upload-artifact@v4
5889
with:
59-
name: legacy-exceptions-rendered
60-
path: document/legacy/exceptions/_build/html
90+
name: code-metadata-rendered
91+
path: document/metadata/code/_build/html
6192

62-
build-js-api-spec:
93+
build-legacy-exceptions-core-spec:
6394
runs-on: ubuntu-latest
6495
steps:
6596
- name: Checkout repo
6697
uses: actions/checkout@v2
67-
- name: Setup Bikeshed
68-
run: pip install bikeshed && bikeshed update
69-
- name: Run Bikeshed
70-
run: bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
98+
with:
99+
submodules: "recursive"
100+
- name: Setup TexLive
101+
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
102+
- name: Setup Sphinx
103+
run: pip install six && pip install sphinx==5.1.0
104+
- name: Build main spec
105+
run: cd document/legacy/exceptions/core && make main
71106
- name: Upload artifact
72-
uses: actions/upload-artifact@v2
107+
uses: actions/upload-artifact@v4
73108
with:
74-
name: js-api-rendered
75-
path: document/js-api/index.html
109+
name: legacy-exceptions-core-rendered
110+
path: document/legacy/exceptions/core/_build/html
76111

77-
build-web-api-spec:
112+
build-legacy-exceptions-js-api-spec:
78113
runs-on: ubuntu-latest
79114
steps:
80115
- name: Checkout repo
81116
uses: actions/checkout@v2
82117
- name: Setup Bikeshed
83118
run: pip install bikeshed && bikeshed update
84119
- name: Run Bikeshed
85-
run: bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
120+
run: bikeshed spec "document/legacy/exceptions/js-api/index.bs" "document/legacy/exceptions/js-api/index.html"
86121
- name: Upload artifact
87-
uses: actions/upload-artifact@v2
122+
uses: actions/upload-artifact@v4
88123
with:
89-
name: web-api-rendered
90-
path: document/web-api/index.html
124+
name: legacy-exceptions-js-api-rendered
125+
path: document/legacy/exceptions/js-api/index.html
126+
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/
91137

92138
publish-spec:
93139
runs-on: ubuntu-latest
94-
needs: [build-core-spec, build-legacy-exceptions-spec, build-js-api-spec, build-web-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
95148
steps:
96149
- name: Checkout repo
97150
uses: actions/checkout@v2
98151
- name: Create output directory
99152
run: mkdir _output && cp document/index.html _output/index.html
100153
- name: Download core spec artifact
101-
uses: actions/download-artifact@v2
154+
uses: actions/download-artifact@v4
102155
with:
103156
name: core-rendered
104157
path: _output/core
105-
- name: Download legacy exceptions spec artifact
106-
uses: actions/download-artifact@v2
107-
with:
108-
name: legacy-exceptions-rendered
109-
path: _output/legacy/exceptions
110158
- name: Download JS API spec artifact
111-
uses: actions/download-artifact@v2
159+
uses: actions/download-artifact@v4
112160
with:
113161
name: js-api-rendered
114162
path: _output/js-api
115163
- name: Download Web API spec artifact
116-
uses: actions/download-artifact@v2
164+
uses: actions/download-artifact@v4
117165
with:
118166
name: web-api-rendered
119167
path: _output/web-api
168+
- name: Download code metadata spec artifact
169+
uses: actions/download-artifact@v4
170+
with:
171+
name: code-metadata-rendered
172+
path: _output/metadata/code
173+
- name: Download legacy exceptions core spec artifact
174+
uses: actions/download-artifact@v4
175+
with:
176+
name: legacy-exceptions-core-rendered
177+
path: _output/legacy/exceptions/core
178+
- name: Download legacy exceptions JS API spec artifact
179+
uses: actions/download-artifact@v4
180+
with:
181+
name: legacy-exceptions-js-api-rendered
182+
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
120188
- name: Publish to GitHub Pages
121189
if: github.ref == 'refs/heads/main'
122190
uses: peaceiris/actions-gh-pages@v3

.github/workflows/mirror-to-master.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/w3c-publish.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +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:
15+
inputs:
16+
w3c-status:
17+
required: true
18+
type: choice
19+
description: W3C Document Status
20+
options:
21+
- ED
22+
- WD
23+
- CRD
24+
- CR
1025

1126
jobs:
1227
publish-to-w3c-TR:
@@ -30,7 +45,7 @@ jobs:
3045
- name: Publish all specs to their https://www.w3.org/TR/ URLs
3146
run: cd document && make -e WD-echidna-CI
3247
env:
33-
STATUS: --md-status=WD
48+
W3C_STATUS: ${{ github.event_name == 'push' && 'CRD' || inputs.w3c-status }}
3449
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
3550
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
3651
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,11 @@ Original README from upstream repository follows.
3232

3333
# spec
3434

35-
This repository holds a prototypical reference implementation for WebAssembly,
36-
which is currently serving as the official specification. Eventually, we expect
37-
to produce a specification either written in human-readable prose or in a formal
38-
specification language.
35+
This repository holds the sources for the WebAssembly specification,
36+
a reference implementation, and the official test suite.
3937

40-
It also holds the WebAssembly testsuite, which tests numerous aspects of
41-
conformance to the spec.
42-
43-
View the work-in-progress spec at [webassembly.github.io/spec](https://webassembly.github.io/spec/).
44-
45-
At this time, the contents of this repository are under development and known
46-
to be "incomplet and inkorrect".
38+
A formatted version of the spec is available here:
39+
[webassembly.github.io/spec](https://webassembly.github.io/spec/),
4740

4841
Participation is welcome. Discussions about new features, significant semantic
4942
changes, or any specification change likely to generate substantial discussion

deploy_key

Lines changed: 0 additions & 49 deletions
This file was deleted.

deploy_key.pub

Lines changed: 0 additions & 1 deletion
This file was deleted.

document/LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This document is licensed under the W3C Software and Document License.
2+
Its text can be found at https://www.w3.org/copyright/software-license/

document/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DIRS = core js-api web-api legacy/exceptions
1+
DIRS = core js-api web-api metadata/code legacy/exceptions versions
22
FILES = index.html
33
BUILDDIR = _build
44
TAR = tar
@@ -28,21 +28,21 @@ diff: $(DIRS:%=diff-%)
2828
# macOS: do “brew install tar” & run “make” as: TAR=gtar make -e WD-tar
2929
.PHONY: WD-tar
3030
WD-tar:
31-
for dir in $(DIRS); \
32-
do STATUS=--md-status=WD TAR=$(TAR) $(MAKE) -e -C $$dir $@;\
31+
for dir in $(DIRS); do \
32+
TAR=$(TAR) $(MAKE) -e -C $$dir $@ || exit 1; \
3333
done
3434

3535
# macOS: do “brew install tar” & run “make” as: TAR=gtar make -e WD-echidna
3636
.PHONY: WD-echidna
3737
WD-echidna:
38-
for dir in $(DIRS); \
39-
do $(MAKE) -e -C $$dir $@;\
38+
for dir in $(DIRS); do \
39+
$(MAKE) -e -C $$dir $@ || exit 1; \
4040
done
4141

4242
.PHONY: WD-echidna-CI
4343
WD-echidna-CI:
44-
for dir in $(DIRS); \
45-
do $(MAKE) -e -C $$dir $@;\
44+
for dir in $(DIRS); do \
45+
$(MAKE) -e -C $$dir $@ || exit 1; \
4646
done
4747

4848
# Directory-specific targets.
@@ -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-%=%)/

0 commit comments

Comments
 (0)