-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
123 changed files
with
19,935 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Web Codestyle | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '**/web/*.js' | ||
- '**/web/*.ts' | ||
- '.github/workflows/web-codestyle.yml' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- '**/web/*.js' | ||
- '**/web/*.ts' | ||
- '.github/workflows/web-codestyle.yml' | ||
|
||
jobs: | ||
check-web-codestyle: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Pre-build dependencies | ||
run: npm install yarn | ||
|
||
- name: Run Binding Linter | ||
run: yarn && yarn lint | ||
working-directory: binding/web |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Web | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'binding/web/**' | ||
- '!binding/web/README.md' | ||
- 'lib/wasm/**' | ||
- '.github/workflows/web.yml' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'binding/web/**' | ||
- '!binding/web/README.md' | ||
- 'lib/wasm/**' | ||
- '.github/workflows/web.yml' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/web | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.machine }} | ||
|
||
strategy: | ||
matrix: | ||
machine: [pv-linux, pv-ios, pv-windows] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Copy libs | ||
run: yarn copywasm | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Prepare Test | ||
run: yarn setup-test http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.bin/latest/phi2-290.bin phi2-290.bin | ||
|
||
- name: Test Web Worker | ||
run: yarn test --env ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["@babel/preset-env"], | ||
"plugins": ["@babel/plugin-transform-runtime"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
dist | ||
lib | ||
rollup.config.js | ||
.eslintrc.js |
Oops, something went wrong.