Skip to content

Initial web

Initial web #2

Workflow file for this run

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