-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.41 KB
/
pyinstaller-builds-actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: build
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
inputs:
type:
description: 'Whether to build a single file (onefile) or directory (dir) dist'
required: true
default: 'dir'
jobs:
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge,defaults
auto-update-conda: true
python-version: 3.9
activate-environment: test
- name: Install CadQuery and pyinstaller
shell: powershell
run: |
conda install python=3.9
conda install -c cadquery -c conda-forge cadquery=master
pip install --upgrade pyinstaller==5.13.0
pip install path
- name: Run build
shell: powershell
run: |
conda info
pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
$opensslPath = Get-Command openssl | Select-Object -ExpandProperty Source
$opensslDir = Split-Path -Parent $opensslPath
Copy-Item "$opensslDir\libssl-1_1-x64.dll" "D:\a\CQ-editor\CQ-editor\dist\CQ-editor\" -ErrorAction SilentlyContinue
Copy-Item "$opensslDir\libcrypto-1_1-x64.dll" "D:\a\CQ-editor\CQ-editor\dist\CQ-editor\" -ErrorAction SilentlyContinue
- uses: actions/upload-artifact@v4
with:
name: CQ-editor-Windows
path: dist