Demos #160
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: Demos | |
on: | |
push: | |
pull_request: | |
# run 4 times a month at 6:40 UTC | |
schedule: [cron: "40 6 1,8,15,22 * *"] | |
jobs: | |
build-demo-granular-synthesizer-web: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: demos/granular_synthesizer_web | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version-file: 'demos/granular_synthesizer_web/.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build project | |
run: npm run build | |
build-demo-sine-web: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: demos/sine_web | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update local toolchain | |
run: | | |
rustup update | |
rustup component add clippy | |
rustup install stable | |
rustup target add wasm32-unknown-unknown | |
- name: Toolchain info | |
run: | | |
cargo --version --verbose | |
rustc --version | |
cargo clippy --version | |
- name: Install Trunk | |
run: | | |
cargo install --locked trunk | |
- name: Build | |
run: | | |
trunk build |