Merge pull request #27 from Zhou-Shilin/main #11
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 Builds | |
on: | |
push: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Set locale encoding to UTF-8 | |
run: | | |
python -c "import locale; locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')" | |
- name: Build project | |
run: python setup.py build | |
- name: Zip build folder | |
run: | | |
cd build | |
Compress-Archive -Path . -DestinationPath ../windows-build.zip | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows-build | |
path: windows-build.zip |