Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
ref-interpreter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.12.x
- run: opam install --yes ocamlbuild.0.14.0
- run: cd interpreter && opam exec make all

build-js-api-spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build JS API bikeshed
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1
with:
source: "document/js-api/index.bs"
destination: "document/js-api/index.html"
- uses: actions/upload-artifact@v2
with:
name: js-api-rendered
path: document/js-api

build-web-api-spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build JS API bikeshed
uses: netwerk-digitaal-erfgoed/bikeshed-action@v1
with:
source: "document/web-api/index.bs"
destination: "document/web-api/index.html"
- uses: actions/upload-artifact@v2
with:
name: web-api-rendered
path: document/web-api

build-core-spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- run: pip install bikeshed && bikeshed update
- run: pip install six
- run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- run: pip install sphinx==3.5.2
- run: cd document/core && make all
- uses: actions/upload-artifact@v2
with:
name: core-api-rendered
path: document/core/_build/html

publish-spec:
runs-on: ubuntu-latest
needs: [build-core-spec, build-js-api-spec, build-web-api-spec]
steps:
- uses: actions/checkout@v2
- run: mkdir _output && cp document/index.html _output/index.html
- uses: actions/download-artifact@v2
with:
name: js-api-rendered
path: _output/js-api
- uses: actions/download-artifact@v2
with:
name: web-api-rendered
path: _output/web-api
- uses: actions/download-artifact@v2
with:
name: core-api-rendered
path: _output/core
- name: Publish HTML to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./_output
github_token: ${{ secrets.GITHUB_TOKEN }}
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/WebAssembly/function-references.svg?branch=master)](https://travis-ci.org/WebAssembly/function-references)
![Build Status](https://github.com/WebAssembly/function-references/actions/workflows/main.yml/badge.svg)

# Function Reference Types Proposal for WebAssembly

Expand Down
Binary file removed deploy_key.enc
Binary file not shown.
12 changes: 6 additions & 6 deletions document/core/appendix/gen-index-instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def Instruction(name, opcode, type=None, validation=None, execution=None, operat
Instruction(r'\CALLINDIRECT~x~y', r'\hex{11}', r'[t_1^\ast~\I32] \to [t_2^\ast]', r'valid-call_indirect', r'exec-call_indirect'),
Instruction(None, r'\hex{12}'),
Instruction(None, r'\hex{13}'),
Instruction(None, r'\hex{14}'),
Instruction(r'\CALLREF', r'\hex{14}', r'[t_1^\ast~(\REF~\NULL~x)] \to [t_2^\ast]', r'valid-call_ref', r'exec-call_ref'),
Instruction(None, r'\hex{15}'),
Instruction(None, r'\hex{16}'),
Instruction(None, r'\hex{17}'),
Expand Down Expand Up @@ -269,13 +269,13 @@ def Instruction(name, opcode, type=None, validation=None, execution=None, operat
Instruction(None, r'\hex{CD}'),
Instruction(None, r'\hex{CE}'),
Instruction(None, r'\hex{CF}'),
Instruction(r'\REFNULL~t', r'\hex{D0}', r'[] \to [t]', r'valid-ref.null', r'exec-ref.null'),
Instruction(r'\REFISNULL', r'\hex{D1}', r'[t] \to [\I32]', r'valid-ref.is_null', r'exec-ref.is_null'),
Instruction(r'\REFNULL~\X{ht}', r'\hex{D0}', r'[] \to [(\REF~\NULL~\X{ht})]', r'valid-ref.null', r'exec-ref.null'),
Instruction(r'\REFISNULL', r'\hex{D1}', r'[(\REF~\NULL~\X{ht})] \to [\I32]', r'valid-ref.is_null', r'exec-ref.is_null'),
Instruction(r'\REFFUNC~x', r'\hex{D2}', r'[] \to [\FUNCREF]', r'valid-ref.func', r'exec-ref.func'),
Instruction(None, r'\hex{D3}'),
Instruction(None, r'\hex{D4}'),
Instruction(r'\REFASNONNULL', r'\hex{D3}', r'[(\REF~\NULL~\X{ht})] \to [(\REF~\X{ht})]', r'valid-ref.as_non_null', r'exec-ref.as_non_null'),
Instruction(r'\BRONNULL~l', r'\hex{D4}', r'[t^\ast~(\REF~\NULL~\X{ht})] \to [t^\ast~(\REF~\X{ht})]', r'valid-br_on_null', r'exec-br_on_null'),
Instruction(None, r'\hex{D5}'),
Instruction(None, r'\hex{D6}'),
Instruction(r'\BRONNONNULL~l', r'\hex{D6}', r'[t^\ast~(\REF~\NULL~\X{ht})] \to [t^\ast]', r'valid-br_on_non_null', r'exec-br_on_non_null'),
Instruction(None, r'\hex{D7}'),
Instruction(None, r'\hex{D8}'),
Instruction(None, r'\hex{D9}'),
Expand Down
Loading