Enhance GUI utility functions with additional styling and functionali… #70
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
| name: Sephera Workflows | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check-out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| architecture: 'x64' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements*.txt | |
| - name: Install Dependencies | |
| shell: bash | |
| run: | | |
| if [[ "${{runner.os }}" == "Linux" ]]; then | |
| sudo apt install clang ccache | |
| fi | |
| if [[ "${{ runner.os }}" == "Windows" ]]; then | |
| choco install visualstudio2019buildtools | |
| fi | |
| pip install -r requirements.txt | |
| - name: Check syntax | |
| run: | | |
| ruff check . | |
| - name: Build CLI for Linux | |
| shell: bash | |
| run: | | |
| if [[ "${{ runner.os }}" == "Linux" ]]; then | |
| THREADS=$(nproc) | |
| python3 -m nuitka main.py \ | |
| --onefile \ | |
| --clang \ | |
| --lto=yes \ | |
| --jobs="$THREADS" \ | |
| --output-dir=build/cli \ | |
| --output-filename=sephera-cli-linux | |
| fi | |
| - name: Build CLI for macOS | |
| shell: bash | |
| run: | | |
| if [[ "${{ runner.os }}" == "macOS" ]]; then | |
| THREADS=$(sysctl -n hw.logicalcpu) | |
| brew install ccache | |
| python3 -m nuitka main.py \ | |
| --onefile \ | |
| --clang \ | |
| --lto=yes \ | |
| --jobs="$THREADS" \ | |
| --output-dir=build/cli \ | |
| --output-filename=sephera-cli-macos | |
| fi | |
| - name: Build CLI for Windows | |
| if: runner.os == 'Windows' | |
| uses: Nuitka/Nuitka-Action@main | |
| with: | |
| nuitka-version: main | |
| script-name: main.py | |
| mode: onefile | |
| output-dir: build/cli | |
| - name: Build GUI App for Linux | |
| shell: bash | |
| run: | | |
| if [[ "${{ runner.os }}" == "Linux" ]]; then | |
| THREADS=$(nproc) | |
| python3 -m nuitka gui/main.py \ | |
| --onefile \ | |
| --enable-plugins=pyqt5 \ | |
| --lto=yes \ | |
| --clang \ | |
| --job="$THREADS" \ | |
| --output-dir=build/gui \ | |
| --output-filename=sephera-gui | |
| fi | |
| - name: Build GUI App for macOS | |
| shell: bash | |
| run: | | |
| if [[ "${{ runner.os }}" == "macOS" ]]; then | |
| THREADS=$(sysctl -n hw.logicalcpu) | |
| python3 -m nuitka gui/main.py \ | |
| --onefile \ | |
| --clang \ | |
| --enable-plugins=pyqt5 \ | |
| --macos-create-app-bundle \ | |
| --lto=yes \ | |
| --jobs="$THREADS" \ | |
| --output-dir=build/gui \ | |
| --output-filename=sephera-gui | |
| fi | |
| - name: Build GUI App for Windows | |
| if: runner.os == 'Windows' | |
| uses: Nuitka/Nuitka-Action@main | |
| with: | |
| nuitka-version: main | |
| script-name: main.py | |
| mode: onefile | |
| output-dir: build/gui | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sephera-${{ runner.os }} | |
| path: | | |
| build/cli/* | |
| build/gui/* | |
| if-no-files-found: error |