Update python-app.yml #7
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: Data Gizmo | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.8" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| if exist requirements.txt pip install -r requirements.txt | |
| shell: cmd | |
| - name: Build with pyinstaller | |
| run: | | |
| pyinstaller --noconfirm --onefile --windowed --hidden-import xarray --icon "./resources/logo.ico" data-gizmo.py | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: data-gizmo-windows | |
| path: ./dist/ | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.8" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Build with pyinstaller | |
| run: | | |
| pyinstaller --noconfirm --onefile --windowed --hidden-import xarray data-gizmo.py | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: data-gizmo-linux | |
| path: ./dist/ |