Skip to content

Commit 5027a88

Browse files
authored
Merge pull request #107 from katagomo/main
Fix #85 优化打包和测试的工作流
2 parents 0df1704 + c55c067 commit 5027a88

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/python-app.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v3
22-
- name: Set up Python 3.10
22+
- name: Set up Python 3.11
2323
uses: actions/setup-python@v3
2424
with:
25-
python-version: "3.10"
25+
python-version: "3.11"
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip

.github/workflows/release.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,36 @@ jobs:
4141
uses: actions/upload-artifact@v4
4242
with:
4343
name: release
44-
path: release.zip
44+
path: release.zip
45+
46+
build-windows:
47+
runs-on: windows-latest
48+
49+
steps:
50+
- name: Checkout code
51+
uses: actions/checkout@v2
52+
53+
- name: Set up Python
54+
uses: actions/setup-python@v2
55+
with:
56+
python-version: 3.11
57+
58+
- name: Install dependencies
59+
run: |
60+
python -m pip install --upgrade pip
61+
pip install -r requirements.txt
62+
pip install pyinstaller
63+
64+
- name: Run buildup.py
65+
run: python buildup.py
66+
67+
- name: Archive release files
68+
run: |
69+
mkdir -p dist
70+
Compress-Archive -Path dist\* -DestinationPath release-windows.zip
71+
72+
- name: Upload release artifact
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: release-windows
76+
path: release-windows.zip

0 commit comments

Comments
 (0)