Skip to content

Commit a84769c

Browse files
Update ci.yml based on project architect
1 parent 47ad16e commit a84769c

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- dev-jintao
88
workflow_dispatch:
99

10-
1110
permissions:
1211
contents: read
1312
actions: write
@@ -18,7 +17,7 @@ jobs:
1817
runs-on: windows-latest
1918
defaults:
2019
run:
21-
working-directory: Tool
20+
working-directory: annotation_tool
2221
steps:
2322
- uses: actions/checkout@v4
2423

@@ -39,29 +38,29 @@ jobs:
3938
try { pip cache purge } catch { Write-Host "pip cache purge failed (ignored)" }
4039
4140
- name: Build exe
41+
# Note: We only add 'ui' because 'ui2' is now merged inside it.
42+
# Ensure you have a 'style' folder containing your .qss files.
4243
run: |
4344
pyinstaller --noconfirm --clean --windowed --onefile `
4445
--name "SoccerNetProAnalyzer" `
4546
--add-data "style;style" `
4647
--add-data "ui;ui" `
47-
--add-data "ui2;ui2" `
4848
"main.py"
4949
50-
# 为了避免你再次 hit artifact quota:只在网页端手动 Run workflow 时上传
5150
- name: Upload artifact (manual runs only)
5251
if: github.event_name == 'workflow_dispatch'
5352
uses: actions/upload-artifact@v4
5453
with:
5554
name: SoccerNetProAnalyzer-Windows
56-
path: Tool/dist/SoccerNetProAnalyzer.exe
55+
path: annotation_tool/dist/SoccerNetProAnalyzer.exe
5756
retention-days: 3
5857

5958
build-macos:
6059
name: Build on macOS
6160
runs-on: macos-latest
6261
defaults:
6362
run:
64-
working-directory: Tool
63+
working-directory: annotation_tool
6564
steps:
6665
- uses: actions/checkout@v4
6766

@@ -80,28 +79,28 @@ jobs:
8079
pip cache purge || true
8180
8281
- name: Build binary
82+
# Separator is ':' for macOS
8383
run: |
8484
pyinstaller --noconfirm --clean --windowed --onefile \
8585
--name "SoccerNetProAnalyzer" \
8686
--add-data "style:style" \
8787
--add-data "ui:ui" \
88-
--add-data "ui2:ui2" \
8988
"main.py"
9089
9190
- name: Upload artifact (manual runs only)
9291
if: github.event_name == 'workflow_dispatch'
9392
uses: actions/upload-artifact@v4
9493
with:
9594
name: SoccerNetProAnalyzer-macOS
96-
path: Tool/dist/SoccerNetProAnalyzer
95+
path: annotation_tool/dist/SoccerNetProAnalyzer
9796
retention-days: 3
9897

9998
build-linux:
10099
name: Build on Linux
101100
runs-on: ubuntu-latest
102101
defaults:
103102
run:
104-
working-directory: Tool
103+
working-directory: annotation_tool
105104
steps:
106105
- uses: actions/checkout@v4
107106

@@ -125,18 +124,18 @@ jobs:
125124
pip cache purge || true
126125
127126
- name: Build binary
127+
# Separator is ':' for Linux
128128
run: |
129129
pyinstaller --noconfirm --clean --windowed --onefile \
130130
--name "SoccerNetProAnalyzer" \
131131
--add-data "style:style" \
132132
--add-data "ui:ui" \
133-
--add-data "ui2:ui2" \
134133
"main.py"
135134
136135
- name: Upload artifact (manual runs only)
137136
if: github.event_name == 'workflow_dispatch'
138137
uses: actions/upload-artifact@v4
139138
with:
140139
name: SoccerNetProAnalyzer-Linux
141-
path: Tool/dist/SoccerNetProAnalyzer
140+
path: annotation_tool/dist/SoccerNetProAnalyzer
142141
retention-days: 3

0 commit comments

Comments
 (0)