main: Various updates needed from the past commits #283
Workflow file for this run
This file contains 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: troppical-build | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
Windows-build: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Cache pip | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~\AppData\Local\pip\Cache | |
~\AppData\Local\pyinstaller\Cache | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
- name: Install dependencies | |
run: pip install pyqt6 pyinstaller pywin32 requests | |
- name: Build | |
shell: bash | |
run: | | |
pyinstaller --clean --onefile --icon=icon.ico --add-data "icon.ico;." --windowed main.py | |
pyinstaller --clean --onefile --icon=icon.ico --windowed init_troppical.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.BUILD }} | |
- name: Upload troppical | |
uses: actions/upload-artifact@v4 | |
with: | |
name: troppical-windows | |
path: ${{ github.workspace }}/dist/main.exe | |
- name: Upload init_troppical | |
uses: actions/upload-artifact@v4 | |
with: | |
name: init-troppical-windows | |
path: ${{ github.workspace }}/dist/init_troppical.exe | |