Skip to content

Commit

Permalink
build installer and check if it works
Browse files Browse the repository at this point in the history
  • Loading branch information
florianesser-tng committed Nov 19, 2024
1 parent d47a0a0 commit f8b499d
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Checkout code
uses: actions/checkout@v3

- name: setup miniforge
uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -23,17 +26,35 @@ jobs:
- name: Install libuv dependency
run: |
conda install -y libuv
conda env list
conda env list | findstr libuv
ls C:\Users\runneradmin\miniconda3\envs\cp311_libuv
echo "$(conda env list | findstr libuv)"
echo "$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)"
echo "LIBUV_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)"
echo "LIBUV_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)" >> $env:GITHUB_ENV
- name: test
echo "LIBUV_DLLS_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)\Library\bin"
echo "LIBUV_DLLS_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)\Library\bin" >> $env:GITHUB_ENV
- name: Install libuv dependency
- name: copy libuv dlls to workspace
run: |
New-Item -ItemType Directory -Path "python_package_res\conda\Library\bin" -Force
copy "${{ env.LIBUV_PATH }}"\*.dll "python_package_res\conda\Library\bin"
- name: Install Node.js and npm
uses: actions/setup-node@v3
with:
node-version: '20'

- name: setup npm project
working-directory: "WebUI"
run: npm install

- name: build installer
working-directory: "WebUI"
run: |
npm install
npm run fetch-build-resources
npm run pack-python
npm run prebuild
npm run build:arc
- name: check release
run: |
echo "${{ env.LIBUV_PATH }}"
echo "${{ env.LIBUV_PATH }}\Library"
dir "${{ env.LIBUV_PATH }}"
dir "${{ env.LIBUV_PATH }}\Library" -recurse -depth 2
dir
cd release
dir

0 comments on commit f8b499d

Please sign in to comment.