Add dyn_prec.rs, an example of dynamic precedence climbing #82
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: Rust-wasm-deploy | |
on: | |
push: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: wasm-pack-action | |
uses: jetli/wasm-pack-action@v0.3.0 | |
#with: | |
# Optional version of wasm-pack to install (eg. "v0.9.1", "latest") | |
#version: # optional, default is latest | |
- name: Use Node.js 10.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Build | |
run: | |
cd wasm && | |
mkdir dist && | |
npm ci && npm run build && | |
cp -r ../scripts ./dist/scripts && | |
cp -r ./scripts/* ./dist/scripts/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./wasm/dist | |
force_orphan: true |