Skip to content

Commit 790c5ea

Browse files
committed
feat (ci): 升级 upload-artifact
1 parent 588116e commit 790c5ea

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

.github/workflows/pre-check.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
strategy:
107107
fail-fast: false
108108
matrix:
109-
platform: [ ubuntu-latest, macos-latest, windows-latest ]
109+
platform: [ macos-latest, windows-latest ]
110110

111111
steps:
112112
- name: Checkout repository
@@ -132,12 +132,6 @@ jobs:
132132
with:
133133
workspaces: src-tauri
134134

135-
- name: Install system dependencies (Ubuntu)
136-
if: matrix.platform == 'ubuntu-latest'
137-
run: |
138-
sudo apt-get update
139-
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
140-
141135
- name: Install frontend dependencies
142136
run: |
143137
if [ -f "pnpm-lock.yaml" ]; then
@@ -149,25 +143,17 @@ jobs:
149143
- name: Build application
150144
run: pnpm tauri build
151145

152-
- name: Upload build artifacts (Ubuntu)
153-
if: matrix.platform == 'ubuntu-latest'
154-
uses: actions/upload-artifact@v3
155-
with:
156-
name: linux-build
157-
path: src-tauri/target/release/bundle/
158-
retention-days: 7
159-
160146
- name: Upload build artifacts (macOS)
161147
if: matrix.platform == 'macos-latest'
162-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
163149
with:
164150
name: macos-build
165151
path: src-tauri/target/release/bundle/
166152
retention-days: 7
167153

168154
- name: Upload build artifacts (Windows)
169155
if: matrix.platform == 'windows-latest'
170-
uses: actions/upload-artifact@v3
156+
uses: actions/upload-artifact@v4
171157
with:
172158
name: windows-build
173159
path: src-tauri/target/release/bundle/

0 commit comments

Comments
 (0)