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: windows-Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' # 指定 Python 版本 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r "source code\requirements.txt" | |
- name: Build Python file | |
run: | | |
pyinstaller --onefile --windowed "source code\XPMSL.py" | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: compiled-app | |
path: "dist/XPMSL.exe" |