From a2f461ab893537be5824d63f2fee091d838df175 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 21 Aug 2023 02:57:51 +0200 Subject: [PATCH] test ci --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fad964a18..682559a54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,12 +18,13 @@ jobs: with: version: latest - name: Bundle WebUI Bridge - shell: bash run: | pnpm i -g esbuild - esbuild --bundle --target="chrome90,firefox90,safari15" --format=esm --tree-shaking=false --outdir=./bridge ./bridge/webui_bridge.ts - cd bridge - python3 js2c.py + if [ "${{ runner.os }}" == "Windows" ]; then + bridge/build.ps1 + else + bridge/build.sh + fi - uses: actions/cache@v3 with: path: bridge/webui_bridge.h