chore:更新requirements #144
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: Bulid dev version | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build_windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check-out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| architecture: 'x64' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements*.txt | |
| - name: Install Dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Build Executable | |
| uses: Nuitka/Nuitka-Action@main | |
| with: | |
| nuitka-version: main | |
| script-name: main.py | |
| mode: standalone | |
| enable-plugins: pyqt5 | |
| include-data-files: LICENSE=LICENSE | |
| include-data-dir: | | |
| assets=assets | |
| plugins=plugins | |
| windows-console-mode: attach | |
| windows-icon-from-ico: ./assets/favicon.ico | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NamePicker-Action-${{ runner.os }} | |
| path: | | |
| ${{ github.workspace }}/build/main.dist | |
| include-hidden-files: true | |
| build_linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check-out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| architecture: 'x64' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements*.txt | |
| - name: Install Dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Build Executable | |
| uses: Nuitka/Nuitka-Action@main | |
| with: | |
| nuitka-version: main | |
| script-name: main.py | |
| mode: standalone | |
| enable-plugins: pyqt5 | |
| include-data-files: LICENSE=LICENSE | |
| include-data-dir: assets=assets | |
| windows-console-mode: attach | |
| linux-icon: ./assets/favicon.ico | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NamePicker-Action-${{ runner.os }} | |
| path: | | |
| ${{ github.workspace }}/build/main.dist | |
| include-hidden-files: true |