[优化方案]避免重复刷同一课程视频,支持多实例同时刷不同课程视频的优化方案 (#383) #104
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: CI | |
on: | |
push: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
architecture: 'x86' | |
name: 'win32' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
architecture: ${{matrix.architecture}} | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: Build win bin | |
run: pyinstaller -F main.py -n 'chaoxing' | |
- name: run ls | |
run: | | |
ls dist | |
echo ${{github.ref}} | |
- name: Publish | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: 'dist/chaoxing*' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.name }} | |
path: 'dist/chaoxing*' |