Skip to content

Commit

Permalink
Merge pull request #1116 from zariiii9003/fix_pyinstaller
Browse files Browse the repository at this point in the history
Fix Pyinstaller Build
  • Loading branch information
danielhrisca authored Dec 10, 2024
2 parents 7b058c2 + d8af4dc commit 9eb9eae
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 98 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build_macos
name: pyinstaller_build

on: [push, pull_request]

Expand All @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]

steps:
Expand All @@ -18,23 +18,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
- name: Install linux libraries
shell: bash
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
pip install -r requirements_exe_build.txt
python -m build --wheel
sudo apt update
sudo apt install libegl1 libopengl0
- name: Build an executable
shell: bash
if: ${{ matrix.python-version == '3.12' }}
- name: Install Python packages
run: |
pip install tox
- name: Build the executable
run: |
pip install -r requirements_exe_build.txt
python -m build --wheel
pyinstaller asammdf.spec --distpath dist/${RUNNER_OS} --noconfirm --clean
tox -e pyinstaller -- --distpath dist/${{ matrix.os }} --noconfirm --clean
# see: https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
- name: Archive dist artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/**
name: pyinstaller-${{ matrix.os }}
path: dist/${{ matrix.os }}/**
if-no-files-found: error
40 changes: 0 additions & 40 deletions .github/workflows/build_linux.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/build_windows.yml

This file was deleted.

5 changes: 0 additions & 5 deletions requirements_exe_build.txt

This file was deleted.

15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ deps =
commands =
sphinx-build --builder html --nitpicky doc doc/_build/html

[testenv:pyinstaller]
base =
deps =
pyinstaller
pyopengl
extras =
decode
encryption
export
export_matlab_v5
gui
symbolic_math
commands =
pyinstaller asammdf.spec {posargs}

[gh-actions]
python =
3.9: py39, black, ruff, doc
Expand Down

0 comments on commit 9eb9eae

Please sign in to comment.