Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify #68

Open
wants to merge 3,134 commits into
base: notifications
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3134 commits
Select commit Hold shift + click to select a range
8f4ae91
[spec] Bump copyright date
rossberg Sep 13, 2024
836b00e
Make builds of old spec versions available
rossberg Sep 13, 2024
51eb50b
[web] Tweaks
rossberg Sep 13, 2024
10a4565
[ci] Add dummy targets for WD-echidna CI
rossberg Sep 13, 2024
8a0d086
[web] Fix links
rossberg Sep 13, 2024
bdd94d2
[ci] Add action to actually upload docs
rossberg Sep 13, 2024
06c3624
[ci] Fix syntax
rossberg Sep 13, 2024
244c6f1
[ci] Missing dependency
rossberg Sep 13, 2024
cc7bb73
[web] Add build date
rossberg Sep 13, 2024
c7c038d
Update document status input for W3C publishing to a choice value (#1…
dschuff Sep 13, 2024
20a8e4f
get_local -> local.get (#27)
zapashcanon Sep 14, 2024
5c7c1d3
Merge remote-tracking branch 'annot/main' into wasm-3.0
rossberg Sep 14, 2024
a9be523
Working with issues
rossberg Sep 18, 2024
72f824b
Fix layout of module grammar
rossberg Sep 18, 2024
0b3dd31
Fix al context print
ShinWonho Sep 19, 2024
008978d
Minor fix
ShinWonho Sep 19, 2024
fd64c06
Fix error
ShinWonho Sep 19, 2024
5ce6efc
Remove ref.null hardcoding
ShinWonho Sep 19, 2024
688ccee
Update debugger
ShinWonho Sep 19, 2024
517034e
Fix typos in catch validation
rossberg Sep 19, 2024
7eae1f4
Fix return result type
rossberg Sep 19, 2024
cb5f4d7
Merge branch 'fix-ctx' of https://github.com/kaist-plrg/spectec into …
702fbtngus Sep 19, 2024
8bd084b
Merge branch 'kaist-plrg-fix-ctx'
702fbtngus Sep 19, 2024
3bff8e3
Add macro for reftypediff
rossberg Sep 19, 2024
6362779
TODO
rossberg Sep 19, 2024
16bacbf
Recognise NL_NL
rossberg Sep 19, 2024
b6ed15b
Avoid empty lines in grammars
rossberg Sep 19, 2024
86858d5
Minor fix
702fbtngus Sep 20, 2024
09774e0
Update TEST.md
702fbtngus Sep 20, 2024
8054f3d
Operational partial multicol workaround
rossberg Sep 20, 2024
8fef547
Fix ChooseE validation
ShinWonho Sep 20, 2024
04a39c5
[spec] Add missing i32x4.extadd_pairwise_i16x8_u instruction to text …
rossberg Sep 21, 2024
3c001a5
Merge branch 'main' into wasm-3.0
rossberg Sep 21, 2024
670ae7e
[spec] Tweak format of changes list
rossberg Sep 21, 2024
bb6fc9c
Merge branch 'main' into wasm-3.0
rossberg Sep 21, 2024
f501994
Fix indentation levels
rossberg Sep 21, 2024
87536c8
[versions] Update 3.0 draft
rossberg Sep 21, 2024
de236e1
Remove half-arsed attempts of working around multicolumn, simple don'…
rossberg Sep 21, 2024
799f142
Rip out multicolumn option in favour of dummy macro set for MathJax
rossberg Sep 21, 2024
4fe3442
Merge branch 'main' into multicol
rossberg Sep 21, 2024
18e371e
Cleanup
rossberg Sep 21, 2024
e2349f8
Merge branch 'main' into multicol
rossberg Sep 21, 2024
229b01e
Fixed recover_state & remove_state
702fbtngus Sep 23, 2024
6cf0808
Minor fix
702fbtngus Sep 23, 2024
aed7587
Fix iterpr translation
presenthee Sep 23, 2024
535fc6a
Minor change
presenthee Sep 23, 2024
48d9cc1
Fix popall assertion
presenthee Sep 23, 2024
f6d168f
Turn on assertion in interpreter
presenthee Sep 23, 2024
f4682d5
Make testpromote
presenthee Sep 23, 2024
c85c0a6
Changed get_subst
702fbtngus Sep 23, 2024
4bded37
Fix many miscellaneous spec problems (#77)
bvisness Sep 23, 2024
d8f6d8e
Merge remote-tracking branch 'upstream/wasm-3.0' into HEAD
sbc100 Sep 23, 2024
c61da44
Fix small issues in the JS API (#78)
bvisness Sep 23, 2024
cd8bba6
Update embedding and execution specs for memory64 (#74)
bvisness Sep 23, 2024
615bd1f
wasm-module-builder: Fix left-over use of kWasmStmt (#83)
backes Sep 23, 2024
41ffcbe
Remove zero-level bullets
presenthee Sep 24, 2024
ba037f4
Change rendering of eqops
presenthee Sep 24, 2024
eb8f31c
Merge branch 'wasm-3.0' into wasm-3.0+relaxed
rossberg Sep 24, 2024
2907d07
Merge remote-tracking branch 'upstream/wasm-3.0'
rossberg Sep 24, 2024
2662295
Layout todos
rossberg Sep 24, 2024
7f10d00
Minor
rossberg Sep 24, 2024
665ea90
Update test expects
rossberg Sep 24, 2024
a315401
[test] Fix left-over use of kWasmStmt in wasm-module-builder (#1812)
backes Sep 24, 2024
815628c
Update modules.rst
lastnone Sep 21, 2024
474f404
Update modules.rst
lastnone Sep 21, 2024
3d7de67
Update modules.rst
lastnone Sep 21, 2024
fdb207d
Change rendering of none eq checks
presenthee Sep 25, 2024
9f21e9b
Fix rendering of isdefined
presenthee Sep 25, 2024
256d798
Fix rendering of limits ([i .. j])
f52985 Sep 25, 2024
e2c4894
Validate CaseE with evalctx id
702fbtngus Sep 25, 2024
09cc6c6
Adapt changes
rossberg Sep 26, 2024
30394ff
Update Test.md
702fbtngus Sep 26, 2024
8dadd74
Eps
rossberg Sep 26, 2024
95acd3e
Merge branch 'wasm-3.0+relaxed' into wasm-3.0
rossberg Sep 26, 2024
2b0896a
Merge remote-tracking branch 'upstream/wasm-3.0' into relaxed
rossberg Sep 26, 2024
b315265
Add relaxed swizzle, [n]madd, min/max
rossberg Sep 26, 2024
60af1b0
[versions] Update 3.0 draft
rossberg Sep 26, 2024
1ff9bae
Minor fix
ShinWonho Sep 26, 2024
4bad20e
Fix rendering of types using description hints
presenthee Sep 30, 2024
7995c92
Update IANA media type registration section in Web API
dschuff Sep 28, 2024
31418f6
Update bikeshed_fixup to number the Change History section
dschuff Sep 28, 2024
15eb918
Revert "Update W3C TR build from WD to CRD (#1797)" (#1813)
dschuff Sep 30, 2024
a700617
Add introduction sections to JS API and Web API documents (#1814)
dschuff Sep 30, 2024
057b5e3
Add relaxed_q15mul
rossberg Oct 1, 2024
e9cbf1a
[spec] Fix typo in relaxed formula
rossberg Oct 1, 2024
00c56da
Fix merge bug
rossberg Oct 1, 2024
d6151a2
Make MatchS always render types
presenthee Oct 2, 2024
236f833
All but laneselect
rossberg Oct 2, 2024
efa5a82
Relaxed SIMD in SpecTec
rossberg Oct 2, 2024
b6725ab
Byte render support
702fbtngus Oct 2, 2024
d5f5868
Add Changelog sections for JS and Web API documents (#1817)
dschuff Oct 2, 2024
97c2d67
Fix validation errors in changelog (#1819)
dschuff Oct 3, 2024
12bf474
close dl tag to fix web API validation (#1820)
dschuff Oct 3, 2024
f1e8a19
Add a minimal Security and Privacy Considerations section to Web API …
dschuff Oct 3, 2024
8e5f4ee
[spec] Various fixes to SIMD stuff
rossberg Oct 3, 2024
75ea7be
Update and fix spec doc modulo numerics/exec
rossberg Oct 3, 2024
bb6a2cd
Merge remote-tracking branch 'upstream/wasm-3.0' into relaxed
rossberg Oct 3, 2024
02adbd2
Missing xref anchors
rossberg Oct 3, 2024
c157e61
Rework IndexValueToU64 to allow more inputs to BigInts (#86)
bvisness Oct 3, 2024
8012c48
Remove redundant runs of bikeshed from the JS/Web Makefiles' tar targets
dschuff Oct 3, 2024
1d676e2
Change order of prose's instructions
f52985 Oct 4, 2024
6a02390
Remove Ocaml 5.1's function
f52985 Oct 4, 2024
924c1f8
[test] More tests for ill-typed call indirect (#1822)
RaoNikitha Oct 4, 2024
2d480da
Check Echidna publishing results for failure or success (#1821)
dschuff Oct 4, 2024
535bedf
[ci] Use build matrix to run W3C spec builds independently (#1825)
dschuff Oct 6, 2024
c0aeee7
Escape latex newline commands with extra vertical space (#1826)
dschuff Oct 6, 2024
b5c848b
Remove some unneeded bikeshed fixup hacks (#1824)
dschuff Oct 6, 2024
9c69d19
[js-api] Fix up missing preconditions on allocations (#1793)
bvisness Oct 7, 2024
85a7ccb
[ci] Update CI action versions (#1827)
rossberg Oct 7, 2024
1fca55a
[test][js-api] Fix import of table64 and memory64 (#84)
backes Oct 7, 2024
2e89dc5
Fix js-api tests (#87)
backes Oct 7, 2024
9e10c86
Add ParenE in IterE for some cases
702fbtngus Oct 8, 2024
2a30893
[interpreter] Fix JS module invocation (#1829)
rossberg Oct 8, 2024
29b1fd4
[interpreter] Proper fix for JS conversion (#1832)
rossberg Oct 8, 2024
aa4ff11
Merge remote-tracking branch 'spec/wasm-3.0'
backes Oct 8, 2024
61e34cc
Fix wasm-module-builder.js (#1831)
thibaudmichaud Oct 9, 2024
ff9ed64
Merge branch 'main' into relaxed
rossberg Oct 9, 2024
b191310
Merge branch 'main' into relaxed
rossberg Oct 9, 2024
379d081
Update test expect
rossberg Oct 9, 2024
3b41f7f
Add missing context rule
rossberg Oct 9, 2024
9fc622e
Rendering nit: AppendI, IterE in prose, and fix context hint
jaehyun1ee Oct 10, 2024
bca3f19
Splice alloctag into doc
jaehyun1ee Oct 10, 2024
50eaec3
Reorganise 3.0 spec source
rossberg Oct 11, 2024
8682a9e
First bunch of numerics
rossberg Oct 12, 2024
30ee821
Test exp
rossberg Oct 12, 2024
f4522d4
Renamings
rossberg Oct 12, 2024
2a00830
Refactor more vector stuff
rossberg Oct 12, 2024
b5affda
Eps
rossberg Oct 12, 2024
3a9f891
Minor fix
rossberg Oct 12, 2024
05c7bba
Remove redundant var decls
rossberg Oct 12, 2024
467f7bd
Removed callframe & replaced to evalctx
702fbtngus Oct 14, 2024
83aedab
More SIMD refactoring
rossberg Oct 14, 2024
7ce6064
Fix TODO comments
rossberg Oct 15, 2024
d3f35fa
Restrict shape sizes
rossberg Oct 15, 2024
76bcf86
Fix a bunch of errors
rossberg Oct 15, 2024
c654dab
Remove optional rendering of type in valid prose
presenthee Oct 16, 2024
4b04daf
Introduce bshape
rossberg Oct 16, 2024
62b6a8f
Oops
rossberg Oct 16, 2024
7ee2998
Improve rendering of absent
presenthee Oct 16, 2024
2e651ce
Make empty seq to use eps
presenthee Oct 17, 2024
bef38ba
Add missing handlers to eval contexts
rossberg Oct 17, 2024
4056ff9
Rename "index type" to "address type" across the spec (#90)
bvisness Oct 18, 2024
9e107e0
Rename "addressType" to "address" in the JS API (#92)
bvisness Oct 21, 2024
853f6cd
Add binary operations to validation prose
presenthee Oct 22, 2024
c2b3e52
Render catch clauses separately
presenthee Oct 22, 2024
ade7380
Spec test updates (#91)
bvisness Oct 22, 2024
86e22aa
Update JS-test generation after #90 and #92 (#94)
backes Oct 25, 2024
b3be146
Added prose hint for relation
702fbtngus Oct 28, 2024
28891cc
Properly distinguish and handle numeric types throughout pipeline
rossberg Oct 29, 2024
cda4012
[spec] Add elem/data member to moduleinst prose (#1837)
mohanson Oct 29, 2024
37f3cad
[interpreter] Fix subtype condition for result patterns
rossberg Oct 28, 2024
8ce0607
Handle extern refs
rossberg Oct 29, 2024
76654e2
[interpreter] Fix (and sanity-check) JS wrapper modules
rossberg Oct 29, 2024
1e10102
Activate CI for wasm-3.0 branch
rossberg Oct 29, 2024
1795669
Merge remote-tracking branch 'spec/wasm-3.0'
backes Oct 29, 2024
c43d72a
Tighten numeric separation
rossberg Oct 29, 2024
9c7108e
Merge pull request #131 from Wasm-DSL/num
rossberg Oct 29, 2024
0277521
Update doc
rossberg Oct 30, 2024
9653a17
Introduce storeop
rossberg Oct 30, 2024
ab66ac9
Simplify ops further with poly variants
rossberg Oct 30, 2024
6c4883f
always try infer first
rossberg Oct 30, 2024
a8000fe
Merge branch 'num'
rossberg Oct 30, 2024
ba9dfab
Merge branch 'main' into elab-redo
rossberg Oct 30, 2024
881e89d
Only invoke infer for principal cases
rossberg Oct 30, 2024
b662037
More use of variants
rossberg Oct 31, 2024
ea17d9f
Merge branch 'main' into elab-redo
rossberg Oct 31, 2024
268a03d
[test] generate JS/HTML wrappers for tests in subdirectories (#1808)
ajklein Nov 1, 2024
35f4e64
Render context extension into two stmts
presenthee Nov 5, 2024
80bb87b
Merge branch 'main' of https://github.com/Wasm-DSL/spectec into valid…
presenthee Nov 5, 2024
0a6a91c
Fix error
presenthee Nov 5, 2024
dcab5a8
Fix typo
presenthee Nov 5, 2024
8b0d67d
Use xl in prose
presenthee Nov 5, 2024
83eae1b
Correct merge changes
rossberg Nov 6, 2024
837bae3
Various tweaks to memory64 spec
rossberg Nov 6, 2024
3f6b420
Changes entry
rossberg Nov 6, 2024
67ebdcd
Typo
rossberg Nov 6, 2024
5f2f99d
embedding.rst: Fix heading underline. NFC (#1840)
sbc100 Nov 6, 2024
ed1fc53
Update appendix for memory64 (#97)
sbc100 Nov 6, 2024
ace0947
Memory64 spec tweaks and fixes from @rossberg (#98)
sbc100 Nov 6, 2024
906d452
Intepreter and test updates from @rossberg (#99)
sbc100 Nov 6, 2024
d7ba933
Merge remote-tracking branch 'addr64/main' into wasm-3.0+addr64
rossberg Nov 7, 2024
87789ff
Merge branch 'main' into wasm-3.0
rossberg Nov 7, 2024
686d9cf
Merge branch 'wasm-3.0' into wasm-3.0+addr64
rossberg Nov 7, 2024
0d9b985
Update draft PDF
rossberg Nov 7, 2024
13a2787
Add envs in unify
presenthee Nov 7, 2024
d793168
Add back lost text rule
rossberg Nov 7, 2024
d8b7fcd
[interpreter] Remove unnecessary type parameter from limits
rossberg Nov 7, 2024
423135b
Merge wasm-3.0 with Memory64
rossberg Nov 7, 2024
eb6fd0c
More merge conflicts
rossberg Nov 7, 2024
b518610
Merge remote-tracking branch 'upstream/wasm-3.0' into addr64
rossberg Nov 7, 2024
a489360
Merge remote-tracking branch 'upstream/wasm-3.0' into addr64
rossberg Nov 7, 2024
37a19f8
Merge fallout
rossberg Nov 7, 2024
25e0923
WIP: improve variable names
presenthee Nov 8, 2024
1025263
Translate triplet CaseE into TupE
f52985 Nov 11, 2024
e1cba5d
Add table64 and memory64 to builtin spectest
f52985 Nov 11, 2024
46af9ec
Revert to original ttype and mtype for Wasm 1,2
f52985 Nov 11, 2024
1ba74b3
Fix type of return type of MEMORY.SIZE
f52985 Nov 11, 2024
5be8ecd
Generalize CaseE translation
f52985 Nov 11, 2024
9354219
Test expectations
rossberg Nov 11, 2024
79c8e39
Fix document
rossberg Nov 11, 2024
2b01908
Merge pull request #133 from Wasm-DSL/addr64
rossberg Nov 11, 2024
9dd1bdc
[latex] Implement renderer hack to handle inline uses of nullary cons…
rossberg Nov 13, 2024
cdc7280
Merge branch 'main' into valid-instr
presenthee Nov 14, 2024
e187680
Relation render done
702fbtngus Nov 15, 2024
bd40b59
update TEST.md
702fbtngus Nov 15, 2024
3d60896
Fixed length check
702fbtngus Nov 18, 2024
7fdbe5b
WIP
rossberg Nov 7, 2024
f6231ab
Merge branch 'main' into elab-redo.2
rossberg Nov 19, 2024
e6d5e99
Add renaming option in unify
presenthee Nov 21, 2024
883f19e
Further improve variable names
presenthee Nov 21, 2024
388b683
Add default relation to use prose hints
presenthee Nov 21, 2024
73d7553
test promote
presenthee Nov 21, 2024
80bf4db
Remove allocexn from spec
rossberg Nov 22, 2024
c616cac
process constructs in rules
presenthee Nov 26, 2024
d8540b2
Fix title underline
presenthee Nov 26, 2024
3ce807f
Removed allocXs prose
702fbtngus Nov 26, 2024
d676884
Revert type description
presenthee Nov 27, 2024
d63d0ab
Resolve warnings
presenthee Nov 27, 2024
74c1619
Turn on sidecondition path in splicing
presenthee Nov 27, 2024
b271d6d
Minor change in ctx naming
presenthee Nov 27, 2024
d7e299e
Modify renaming
presenthee Nov 27, 2024
b67d5aa
Fixed implicit store
702fbtngus Nov 28, 2024
79baff2
Resolve comments
presenthee Dec 2, 2024
2f9638e
Resolve comment on defaultable
presenthee Dec 2, 2024
e9162a7
Add defaultable proses
presenthee Dec 2, 2024
8cfe5be
Merge pull request #127 from Wasm-DSL/valid-instr
presenthee Dec 2, 2024
9f341fb
Tweak and fix defaultable relation
rossberg Dec 3, 2024
c861c07
Merge branch 'main' into elab-redo.2
rossberg Dec 3, 2024
91a4fa1
Merge branch 'main' into splice-modulesem
702fbtngus Dec 4, 2024
ea76cdb
WIP
rossberg Dec 4, 2024
a0051b4
Make multiple newlines at end of file work
rossberg Dec 7, 2024
e499ab6
Clean up elabpration of iterations
rossberg Dec 7, 2024
237dab9
Fix trace
rossberg Dec 9, 2024
d07de7d
Missing cross references fixed
702fbtngus Dec 10, 2024
753bfb7
Use backtracking consistently for sequences; introduce list exp for d…
rossberg Dec 11, 2024
e0ab635
Remove TODO
rossberg Dec 11, 2024
8dc5745
minor fix
702fbtngus Dec 12, 2024
4fe8709
Minor fix
702fbtngus Dec 12, 2024
f353d68
Updated TEST.md
702fbtngus Dec 12, 2024
691b9b3
Merge pull request #135 from Wasm-DSL/splice-modulesem
702fbtngus Dec 23, 2024
4ae3ac3
Enable cast from opt to list
rossberg Dec 23, 2024
be8490c
Merge branch 'main' into elab-redo.2
rossberg Dec 23, 2024
e2d79d4
Rework elaboration (#136)
rossberg Dec 23, 2024
fd54303
Fix README; zarith library version
jaehyun1ee Dec 25, 2024
aa7e55d
Fix double date on title page
rossberg Jan 9, 2025
fb3e5c8
Fix rendering of last table row
rossberg Jan 9, 2025
7eb8c9f
Pass on value syntax
rossberg Jan 9, 2025
77c673e
Fix layout of otherwise clause
rossberg Jan 10, 2025
df443a2
Pass on type syntax
rossberg Jan 10, 2025
a077457
Test expects
rossberg Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions .github/workflows/ci-interpreter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: CI for interpreter & tests

on:
push:
branches: [ main ]
paths: [ interpreter/**, test/** ]
branches: [ main, wasm-3.0 ]
paths: [ .github/**, interpreter/**, test/** ]

pull_request:
branches: [ main ]
paths: [ interpreter/**, test/** ]
branches: [ main, wasm-3.0 ]
paths: [ .github/**, interpreter/**, test/** ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,20 +17,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup OCaml
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.x
- name: Setup OCaml tools
run: opam install --yes ocamlfind.1.9.5 js_of_ocaml.4.0.0 js_of_ocaml-ppx.4.0.0
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 19.x
node-version: 20.x
- name: Build interpreter
run: cd interpreter && opam exec make
- name: Run tests
# TODO: reactiate node once it supports all of Wasm 3.0
# TODO: reactivate node once it supports all of Wasm 3.0
# run: cd interpreter && opam exec make JS=node ci
run: cd interpreter && opam exec make ci
132 changes: 112 additions & 20 deletions .github/workflows/ci-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: CI for specs

on:
push:
branches: [ main ]
paths: [ document/** ]
branches: [ main, wasm-3.0 ]
paths: [ .github/**, document/**, spectec/** ]

pull_request:
branches: [ main ]
paths: [ document/** ]
branches: [ main, wasm-3.0 ]
paths: [ .github/**, document/**, spectec/** ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,17 +17,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.x
- name: Setup Dune
run: opam install --yes dune menhir mdx && opam exec dune --version
run: opam install --yes dune menhir mdx zarith && opam exec dune --version
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
- name: Setup Bikeshed
Expand All @@ -40,10 +40,10 @@ jobs:
run: cd spectec && opam exec make
- name: Build main spec
run: cd document/core && opam exec make main
- name: Run Bikeshed
run: cd document/core && opam exec make bikeshed
#- name: Run Bikeshed
# run: cd document/core && opam exec make bikeshed
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: core-rendered
path: document/core/_build/html
Expand All @@ -52,13 +52,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Bikeshed
run: pip install bikeshed && bikeshed update
- name: Run Bikeshed
run: bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: js-api-rendered
path: document/js-api/index.html
Expand All @@ -67,43 +67,135 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Bikeshed
run: pip install bikeshed && bikeshed update
- name: Run Bikeshed
run: bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: web-api-rendered
path: document/web-api/index.html

publish-spec:
build-code-metadata-spec:
runs-on: ubuntu-latest
needs: [build-core-spec]
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/metadata/code && make main
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: code-metadata-rendered
path: document/metadata/code/_build/html

build-legacy-exceptions-core-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/core && make main
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: legacy-exceptions-core-rendered
path: document/legacy/exceptions/core/_build/html

build-legacy-exceptions-js-api-spec:
runs-on: ubuntu-latest
needs: [build-core-spec, build-js-api-spec, build-web-api-spec]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Bikeshed
run: pip install bikeshed && bikeshed update
- name: Run Bikeshed
run: bikeshed spec "document/legacy/exceptions/js-api/index.bs" "document/legacy/exceptions/js-api/index.html"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: legacy-exceptions-js-api-rendered
path: document/legacy/exceptions/js-api/index.html

build-spec-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: versions-rendered
path: document/versions/

publish-spec:
runs-on: ubuntu-latest
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
- build-spec-versions
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Create output directory
run: mkdir _output && cp document/index.html _output/index.html
- name: Download core spec artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: core-rendered
path: _output/core
- name: Download JS API spec artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: js-api-rendered
path: _output/js-api
- name: Download Web API spec artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: web-api-rendered
path: _output/web-api
- name: Download code metadata spec artifact
uses: actions/download-artifact@v4
with:
name: code-metadata-rendered
path: _output/metadata/code
- name: Download legacy exceptions core spec artifact
uses: actions/download-artifact@v4
with:
name: legacy-exceptions-core-rendered
path: _output/legacy/exceptions/core
- name: Download legacy exceptions JS API spec artifact
uses: actions/download-artifact@v4
with:
name: legacy-exceptions-js-api-rendered
path: _output/legacy/exceptions/js-api
- name: Download spec versions artifacts
uses: actions/download-artifact@v4
with:
name: versions-rendered
path: _output/versions
- name: Publish to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./_output
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/ci-spectec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: CI for spectec
on:
push:
branches: [ main ]
paths: [ spectec/** ]
paths: [ spectec/**, document/** ]

pull_request:
branches: [ main ]
paths: [ spectec/** ]
paths: [ spectec/**, document/** ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,7 +23,7 @@ jobs:
with:
ocaml-compiler: 4.14.x
- name: Setup Dune
run: opam install --yes dune menhir mdx
run: opam install --yes dune menhir mdx zarith
- name: Setup Latex
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Setup Sphinx
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/mirror-to-master.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/w3c-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Validate/Publish to W3C TR space

on:
push:
# Disable on fork
# branches: [ main ]
branches: [ main-only-on-spec-repo ]
paths: [ .github/**, document/** ]
pull_request:
paths: [ .github/**, document/** ]

# Allows you to run this workflow manually from the Actions tab, gh CLI tool,
# or REST API. THe w3c-status options correspond to the valid options for
# Bikeshed's --md-status flag, and refer to the W3C rec-track document
# stages described in https://www.w3.org/policies/process/#maturity-stages
# (Editor's Draft, Working Draft, Candidiate Recommendation Draft, and
# Candidate Recommendation Snapshot).
workflow_dispatch:
inputs:
w3c-status:
required: true
type: choice
description: W3C Document Status
options:
- ED
- WD
- CRD
- CR

env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
W3C_STATUS: ${{ github.event_name == 'workflow_dispatch' && inputs.w3c-status || 'WD' }}

jobs:
publish-to-w3c-TR:
strategy:
fail-fast: false
matrix:
spec: [core, js-api, web-api]
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Setup Bikeshed
run: pip install bikeshed && bikeshed update
- name: Setup TexLive
if: ${{ matrix.spec == 'core' }}
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Setup Sphinx
if: ${{ matrix.spec == 'core' }}
run: pip install six && pip install sphinx==5.1.0
- name: Publish ${{ matrix.spec }} spec to its https://www.w3.org/TR/ URL
if: env.W3C_ECHIDNA_TOKEN_CORE
run: cd document && make -e -C ${{ matrix.spec }} WD-echidna-CI
env:
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
ECHIDNA_DRYRUN: ${{ !(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }}
- name: Validate ${{ matrix.spec }} spec with Echidna
if: env.W3C_USERNAME
run: cd document && make -e -C ${{ matrix.spec }} WD-echidna
env:
W3C_USERNAME: ${{ secrets.W3C_USERNAME }}
W3C_PASSWORD: ${{ secrets.W3C_PASSWORD }}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ Original `README` from upstream repository follows...

# spec

This repository holds the sources for the WebAssembly draft specification
(to seed a future
[WebAssembly Working Group](https://lists.w3.org/Archives/Public/public-new-work/2017Jun/0005.html)),
a reference implementation, and the official testsuite.
This repository holds the sources for the WebAssembly specification,
a reference implementation, and the official test suite.

A formatted version of the spec is available here:
[webassembly.github.io/spec](https://webassembly.github.io/spec/),
Expand Down
2 changes: 2 additions & 0 deletions document/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This document is licensed under the W3C Software and Document License.
Its text can be found at https://www.w3.org/copyright/software-license/
Loading
Loading