Initial web #3
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: Web Demos | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: | |
- 'demo/web/**' | |
- '!demo/web/README.md' | |
- '.github/workflows/web-demos.yml' | |
pull_request: | |
branches: [ main, 'v[0-9]+.[0-9]+' ] | |
paths: | |
- 'demo/web/**' | |
- '!demo/web/README.md' | |
- '.github/workflows/web-demos.yml' | |
defaults: | |
run: | |
working-directory: demo/web | |
jobs: | |
build: | |
runs-on: ${{ matrix.machine }} | |
strategy: | |
matrix: | |
machine: [pv-linux, pv-ios, pv-windows] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install and build Web Binding | |
run: yarn && yarn copywasm && yarn build | |
working-directory: binding/web | |
- name: Setup demo | |
run: yarn setup-demo http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/xpu/res/phi2-290.bin/latest/phi2-290.bin phi2-290.bin | |
- name: Install dependencies | |
run: yarn install |