Fix an incompatibility with the parser translator #2166
Workflow file for this run
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
name: JavaScript bindings | |
on: | |
push: | |
paths: | |
- ".github/workflows/javascript-bindings.yml" | |
- "include/" | |
- "src/" | |
- "*akefile*" | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: head | |
bundler-cache: true | |
- name: rake templates | |
run: bundle exec rake templates | |
- name: Set up WASI-SDK | |
run: | | |
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz | |
tar xvf wasi-sdk-20.0-linux.tar.gz | |
- name: Build the project | |
run: make wasm WASI_SDK_PATH=$(pwd)/wasi-sdk-20.0 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: prism.wasm | |
path: javascript/src/prism.wasm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Run the tests | |
run: npm test | |
working-directory: javascript |