forked from WebAssembly/spec
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into HEAD
- Loading branch information
Showing
29 changed files
with
534 additions
and
1,160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI for interpreter & tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ interpreter/**, test/** ] | ||
|
||
pull_request: | ||
branches: [ main ] | ||
paths: [ interpreter/**, test/** ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
interpreter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Setup OCaml | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: 4.12.x | ||
- name: Setup OCaml tools | ||
run: opam install --yes ocamlbuild.0.14.0 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 | ||
with: | ||
node-version: 19.x | ||
- name: Build interpreter | ||
run: cd interpreter && opam exec make | ||
- name: Run tests | ||
run: cd interpreter && opam exec make JS=node ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: CI for specs | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ document/** ] | ||
|
||
pull_request: | ||
branches: [ main ] | ||
paths: [ document/** ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-core-spec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Setup Bikeshed | ||
run: pip install bikeshed && bikeshed update | ||
- 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/core && make main | ||
- name: Run Bikeshed | ||
run: cd document/core && make bikeshed | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: core-rendered | ||
path: document/core/_build/html | ||
|
||
build-js-api-spec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- 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 | ||
with: | ||
name: js-api-rendered | ||
path: document/js-api/index.html | ||
|
||
build-web-api-spec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- 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 | ||
with: | ||
name: web-api-rendered | ||
path: document/web-api/index.html | ||
|
||
publish-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: Create output directory | ||
run: mkdir _output && cp document/index.html _output/index.html | ||
- name: Download core spec artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: core-rendered | ||
path: _output/core | ||
- name: Download JS API spec artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: js-api-rendered | ||
path: _output/js-api | ||
- name: Download Web API spec artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: web-api-rendered | ||
path: _output/web-api | ||
- name: Publish to GitHub Pages | ||
if: github.ref == 'refs/heads/main' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_dir: ./_output | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Mirror main branch to master branch | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -8,8 +10,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Mirror main branch to master branch | ||
steps: | ||
- name: Mirror action step | ||
id: mirror | ||
- name: Mirror branch | ||
uses: google/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.