0.98b2 - some pwm related fixes, languages #162
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow builds PyInstaller single-file executables | |
# of Meerk40t for Ubuntu (latest) | |
name: Meerk40t (Ubuntu) | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout meerk40t | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
sudo apt install libgtk-3-dev cmake libeigen3-dev | |
sudo apt install libagg-dev libpotrace-dev | |
sudo apt install python3.10-dev | |
python3 -m ensurepip --upgrade | |
python3 -m pip install --upgrade pip | |
pip cache purge | |
pip install setuptools | |
pip install pyinstaller wheel | |
pip install numpy==1.26.4 | |
pip install pyusb | |
pip install wheel | |
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython | |
pip install potracer | |
pip install pypotrace | |
pip install pillow==9.5.0 | |
pip install ezdxf | |
pip install pyserial | |
pip install bitarray | |
# pip install scipy | |
pip install numba | |
pip install --no-cache-dir opencv-python-headless==4.5.3.56 | |
pip install meerk40t-camera | |
if [ -f requirements-optional.txt ]; then pip install -r requirements-optional.txt; fi | |
if [ -f requirements-nogui.txt ]; then pip install -r requirements-nogui.txt; fi | |
pip install . | |
pip install meerk40t-barcodes | |
- name: pip list | |
run: | | |
pip list | |
- name: Build meerk40t | |
run: | | |
mv meerk40t.py mk40t.py | |
mv meerk40t/external_plugins.py meerk40t/external_plugins.unused | |
mv meerk40t/external_plugins_build.py meerk40t/external_plugins.py | |
pyinstaller .github/workflows/linux/meerk40t.spec | |
mv dist/MeerK40t dist/MeerK40t-Ubuntu-Latest | |
mv mk40t.py meerk40t.py | |
mv meerk40t/external_plugins.py meerk40t/external_plugins_build.py | |
mv meerk40t/external_plugins.unused meerk40t/external_plugins.py | |
# Switched to using softprops/action-gh-release@v1 | |
# because it supports uploading to existing release based on current tag. | |
- name: Upload Release Assets | |
id: release | |
uses: softprops/action-gh-release@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
dist/MeerK40t-Ubuntu-Latest | |