✅ adapt to the latest version of learn tsinghua (#18) #26
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: PyInstaller | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: build with pyinstaller | |
run: | | |
pyinstaller --onefile learn-stdio.py -n learn-stdio-${{ matrix.os }} | |
- name : Upload artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: learn-stdio | |
path: dist/ |