mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-31 12:20:26 +08:00
parent
28136bbda7
commit
4a85559219
4
.github/actions/install-all-deps/action.yml
vendored
4
.github/actions/install-all-deps/action.yml
vendored
@ -2,9 +2,6 @@ name: "install all deps"
|
||||
description: "Install all deps"
|
||||
|
||||
inputs:
|
||||
always_install_pnpm:
|
||||
description: "Dictates whether or not we should install pnpm & dependencies, regardless of the cache"
|
||||
default: "false"
|
||||
skip_build:
|
||||
description: "Skip build"
|
||||
default: "false"
|
||||
@ -84,7 +81,6 @@ runs:
|
||||
- name: install-frontend
|
||||
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
|
||||
with:
|
||||
always_install_pnpm: ${{ inputs.always_install_pnpm }}
|
||||
skip_build: ${{ inputs.skip_build }}
|
||||
build_lite: ${{ inputs.build_lite }}
|
||||
- name: generate json
|
||||
|
@ -2,9 +2,6 @@ name: "install frontend"
|
||||
description: "Install frontend deps"
|
||||
|
||||
inputs:
|
||||
always_install_pnpm:
|
||||
description: "Dictates whether or not we should install pnpm & dependencies, regardless of the cache"
|
||||
default: "false"
|
||||
skip_build:
|
||||
description: "Skip build"
|
||||
default: "false"
|
||||
@ -31,11 +28,9 @@ runs:
|
||||
cache: pnpm
|
||||
cache-dependency-path: pnpm-lock.yaml
|
||||
- name: Install deps
|
||||
if: steps.frontend-cache.outputs.cache-hit != 'true' || inputs.always_install_pnpm == 'true'
|
||||
shell: bash
|
||||
run: pnpm i --frozen-lockfile --ignore-scripts
|
||||
- name: Build Css
|
||||
if: inputs.always_install_pnpm == 'true'
|
||||
shell: bash
|
||||
run: pnpm css
|
||||
- name: Build frontend
|
||||
@ -43,7 +38,7 @@ runs:
|
||||
shell: bash
|
||||
run: pnpm build
|
||||
- name: generate types
|
||||
if: inputs.always_install_pnpm == 'true' || inputs.skip_build == 'false' || inputs.build_lite == 'true'
|
||||
if: inputs.skip_build == 'false' || inputs.build_lite == 'true'
|
||||
shell: bash
|
||||
run: pnpm package
|
||||
- name: Build frontend lite
|
||||
|
1
.github/workflows/npm-previews.yml
vendored
1
.github/workflows/npm-previews.yml
vendored
@ -46,7 +46,6 @@ jobs:
|
||||
- name: install dependencies
|
||||
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
skip_build: true
|
||||
- name: build client
|
||||
run: pnpm --filter @gradio/client --filter @gradio/wasm --filter @gradio/preview build
|
||||
|
1
.github/workflows/previews-build.yml
vendored
1
.github/workflows/previews-build.yml
vendored
@ -45,7 +45,6 @@ jobs:
|
||||
- name: install dependencies
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
python_version: "3.9"
|
||||
build_lite: "true"
|
||||
- name: Package Lite NPM package
|
||||
|
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -23,7 +23,6 @@ jobs:
|
||||
- name: install dependencies
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
skip_build: "false"
|
||||
- name: Build packages
|
||||
run: |
|
||||
|
1
.github/workflows/storybook-build.yml
vendored
1
.github/workflows/storybook-build.yml
vendored
@ -52,7 +52,6 @@ jobs:
|
||||
- name: install dependencies
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
skip_build: "true"
|
||||
- name: build client
|
||||
run: pnpm --filter @gradio/client build
|
||||
|
1
.github/workflows/test-functional-lite.yml
vendored
1
.github/workflows/test-functional-lite.yml
vendored
@ -46,7 +46,6 @@ jobs:
|
||||
id: install_deps
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
build_lite: true
|
||||
skip_build: true
|
||||
- run: pnpm exec playwright install chromium firefox
|
||||
|
2
.github/workflows/test-functional.yml
vendored
2
.github/workflows/test-functional.yml
vendored
@ -45,8 +45,6 @@ jobs:
|
||||
- name: install dependencies
|
||||
id: install_deps
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
- name: install outbreak_forecast dependencies
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
|
2
.github/workflows/tests-js.yml
vendored
2
.github/workflows/tests-js.yml
vendored
@ -49,8 +49,6 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: install dependencies
|
||||
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
- name: build client
|
||||
run: pnpm --filter @gradio/client build
|
||||
- name: build the wasm module
|
||||
|
1
.github/workflows/website-build.yml
vendored
1
.github/workflows/website-build.yml
vendored
@ -54,7 +54,6 @@ jobs:
|
||||
- name: install dependencies
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
skip_build: true
|
||||
python_version: "3.10"
|
||||
- name: build client
|
||||
|
Loading…
x
Reference in New Issue
Block a user