Merge pull request #25 from Zhou-Shilin/feature-update-progressbar #9
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: Linux Builds | |
on: | |
push: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-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 | |
zip -r ../linux-build.zip . | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-build | |
path: linux-build.zip |