# ============================================================================= # WORKFLOW DISABLED - Pending testing of v0.9.0 modernization # ============================================================================= # This workflow is temporarily disabled while testing the new: # - PySide6 GUI (replacing Tkinter) # - FastAPI web server (replacing Flask) # - pyproject.toml build system (replacing requirements.txt) # - PWA web interface # # Uncomment the workflow below once builds are verified locally. # ============================================================================= # name: Build and Release # # on: # push: # branches: # - main # # jobs: # create-release: # runs-on: ubuntu-latest # steps: # - name: Checkout code # uses: actions/checkout@v3 # # - name: Get version # id: get_version # run: | # VERSION=$(cat version.txt) # echo "VERSION=$VERSION" >> $GITHUB_ENV # # - name: Create Release # id: create_release # uses: softprops/action-gh-release@v1 # with: # tag_name: v${{ env.VERSION }} # name: Release v${{ env.VERSION }} # draft: false # prerelease: false # # build-windows: # needs: [create-release] # runs-on: windows-latest # steps: # - name: Checkout code # uses: actions/checkout@v3 # # - name: Set up Python # uses: actions/setup-python@v4 # with: # python-version: '3.11' # # - name: Install dependencies # run: | # python -m pip install --upgrade pip # pip install pyinstaller # pip install -e . # # - name: Build executable # run: | # pyinstaller macropad.spec # # - name: Upload Windows artifact # uses: actions/upload-artifact@v3 # with: # name: macropad-windows # path: dist/macropad.exe # # build-linux: # needs: [create-release] # runs-on: ubuntu-latest # steps: # - name: Checkout code # uses: actions/checkout@v3 # # - name: Set up Python # uses: actions/setup-python@v4 # with: # python-version: '3.11' # # - name: Install system dependencies # run: | # sudo apt-get update # # PySide6 requirements # sudo apt-get install -y libxcb-xinerama0 libxkbcommon-x11-0 libegl1 # # System tray requirements # sudo apt-get install -y libgtk-3-dev python3-gi python3-gi-cairo gir1.2-gtk-3.0 # sudo apt-get install -y gir1.2-appindicator3-0.1 # sudo apt-get install -y libcairo2-dev libgirepository1.0-dev # # - name: Install dependencies # run: | # python -m pip install --upgrade pip # pip install pyinstaller # pip install -e . # # - name: Build executable # run: | # pyinstaller macropad_linux.spec # # - name: Upload Linux artifact # uses: actions/upload-artifact@v3 # with: # name: macropad-linux # path: dist/macropad # # # MacOS build - requires macos runner # # build-macos: # # needs: [create-release] # # runs-on: macos-latest # # steps: # # - name: Checkout code # # uses: actions/checkout@v3 # # # # - name: Set up Python # # uses: actions/setup-python@v4 # # with: # # python-version: '3.11' # # # # - name: Install dependencies # # run: | # # python -m pip install --upgrade pip # # pip install pyinstaller # # pip install -e . # # # # - name: Build executable # # run: | # # pyinstaller macropad_macos.spec # # # # - name: Upload macOS artifact # # uses: actions/upload-artifact@v3 # # with: # # name: macropad-macos # # path: dist/macropad.app # # attach-to-release: # needs: [create-release, build-windows, build-linux] # runs-on: ubuntu-latest # steps: # - name: Checkout code # uses: actions/checkout@v3 # # - name: Get version # id: get_version # run: | # VERSION=$(cat version.txt) # echo "VERSION=$VERSION" >> $GITHUB_ENV # # - name: Download all artifacts # uses: actions/download-artifact@v3 # # - name: Attach executables to release # uses: softprops/action-gh-release@v1 # with: # tag_name: v${{ env.VERSION }} # files: | # macropad-windows/macropad.exe # macropad-linux/macropad