136 lines
5.3 KiB
YAML
136 lines
5.3 KiB
YAML
name: build-PIP-TAR
|
|
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-linux:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: mamba-org/setup-micromamba@v1
|
|
with:
|
|
environment-name: test
|
|
environment-file: environment.yml
|
|
init-shell: >-
|
|
bash
|
|
# create-args: >-
|
|
# python=3.11
|
|
- name: pip install cadquery CQ-editor ... etc
|
|
shell: bash
|
|
run: |
|
|
sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
|
|
sudo apt install -y libxkbcommon0
|
|
sudo apt install -y libxkbcommon-x11-0
|
|
sudo apt install -y libxcb-xinerama0
|
|
sudo apt install -y qtbase5-dev qt5-qmake
|
|
micromamba info
|
|
pip install pyopengl
|
|
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
|
pip install -vvv --pre git+https://github.com/cadquery/cadquery casadi
|
|
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib
|
|
pip install path
|
|
pip install jupyter-rfb
|
|
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
pip install git+https://github.com/gumyr/bd_warehouse
|
|
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
pip install git+https://github.com/gumyr/build123d
|
|
pip install git+https://github.com/JustinSDK/cqMore
|
|
pip list
|
|
- name: Run build
|
|
shell: bash
|
|
run: |
|
|
micromamba activate test
|
|
micromamba info
|
|
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
|
|
cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CQ-editor-Linux-x86_64
|
|
path: dist
|
|
build-macos:
|
|
runs-on: macos-13
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: mamba-org/setup-micromamba@v1
|
|
with:
|
|
environment-name: test
|
|
environment-file: environment.yml
|
|
init-shell: >-
|
|
bash
|
|
# create-args: >-
|
|
# python=3.11
|
|
- name: pip install cadquery CQ-editor ... etc
|
|
shell: bash
|
|
run: |
|
|
micromamba info
|
|
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
|
pip install --pre git+https://github.com/cadquery/cadquery casadi
|
|
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib
|
|
pip install path
|
|
pip uninstall -y PyQt5
|
|
pip install PyQt5==5.15.7
|
|
pip install PyQtWebEngine==5.15.6
|
|
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
pip install git+https://github.com/gumyr/bd_warehouse
|
|
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
pip install git+https://github.com/gumyr/build123d
|
|
pip install git+https://github.com/JustinSDK/cqMore
|
|
pip list
|
|
- name: Run build
|
|
shell: bash
|
|
run: |
|
|
micromamba activate test
|
|
micromamba info
|
|
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
|
|
cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CQ-editor-MacOS
|
|
path: dist
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: mamba-org/setup-micromamba@v1
|
|
with:
|
|
environment-name: test
|
|
environment-file: environment.yml
|
|
init-shell: >-
|
|
bash
|
|
# create-args: >-
|
|
# python=3.11
|
|
- name: pip install cadquery CQ-editor ... etc
|
|
shell: bash
|
|
run: |
|
|
micromamba info
|
|
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
|
pip install --pre git+https://github.com/cadquery/cadquery casadi
|
|
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib
|
|
pip install path
|
|
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
pip install git+https://github.com/gumyr/bd_warehouse
|
|
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
pip install git+https://github.com/gumyr/build123d
|
|
pip install git+https://github.com/JustinSDK/cqMore
|
|
pip list
|
|
- name: Run build
|
|
shell: bash
|
|
run: |
|
|
micromamba activate test
|
|
micromamba info
|
|
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
|
|
cp D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\pyinstaller\CQ-editor.cmd D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CQ-editor-Windows
|
|
path: dist
|