Skip to content

installer-build-42f37eb2a127654772def22cee9c7ff32d49929c #22

installer-build-42f37eb2a127654772def22cee9c7ff32d49929c

installer-build-42f37eb2a127654772def22cee9c7ff32d49929c #22

name: build installer
run-name: installer-build-${{ github.sha }}
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: setup miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
python-version: "3.11"
activate-environment: 'cp311_libuv'
- name: Install libuv dependency
run: |
conda install -y libuv
conda env list | findstr libuv
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: copy libuv dlls to workspace
run: |
New-Item -ItemType Directory -Path "python_package_res\conda\Library\bin" -Force
copy "${{ env.LIBUV_DLLS_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: set release path
working-directory: "release"
run: |
echo "INSTALLER_EXE_PATH=$(Get-ChildItem -Path . -Filter *.exe | Select-Object -ExpandProperty FullName)"
echo "INSTALLER_EXE_PATH=$(Get-ChildItem -Path . -Filter *.exe | Select-Object -ExpandProperty FullName)" >> $env:GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
# Name of the artifact to upload.
# Optional. Default is 'artifact'
name: arc-installer-windows.exe
# A file, directory or wildcard pattern that describes what to upload
# Required.
path: ${{ env.INSTALLER_EXE_PATH }}
if-no-files-found: error
retention-days: 1
overwrite: true