Skip to content

Commit c248f1a

Browse files
author
ChenDoXiu
committed
update ci
1 parent 304d000 commit c248f1a

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

.github/workflows/flutter-pre-build.yml

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
uses: subosito/flutter-action@v2
4444
with:
4545
channel: "stable"
46+
cache: true
4647

4748
- name: 拉取代码
4849
uses: actions/checkout@v4
@@ -88,6 +89,7 @@ jobs:
8889
uses: subosito/flutter-action@v2
8990
with:
9091
channel: "stable"
92+
cache: true
9193

9294
- name: 安装ninja、libgtk
9395
run: |
@@ -127,6 +129,7 @@ jobs:
127129
uses: subosito/flutter-action@v2
128130
with:
129131
channel: "stable"
132+
cache: true
130133

131134
- name: 安装依赖项
132135
run: flutter pub get
@@ -164,6 +167,7 @@ jobs:
164167
uses: subosito/flutter-action@v2
165168
with:
166169
channel: "stable"
170+
cache: true
167171

168172
- name: 安装依赖项
169173
run: flutter pub get
@@ -189,42 +193,3 @@ jobs:
189193
name: build-macos
190194
path: |
191195
MoeKey-${{ needs.pre-build.outputs.APP_VERSION }}-macOS-universal-release.zip
192-
193-
# release:
194-
# name: 上传包
195-
# needs: [build-apk, build-linux, build-windows, build-macos, pre-build]
196-
# runs-on: ubuntu-latest
197-
# permissions:
198-
# contents: write
199-
# steps:
200-
# - name: 下载apk
201-
# uses: actions/download-artifact@v4
202-
# with:
203-
# name: build-apk
204-
# path: artifact
205-
#
206-
# - name: 下载linux
207-
# uses: actions/download-artifact@v4
208-
# with:
209-
# name: build-linux
210-
# path: artifact
211-
#
212-
# - name: 下载windows
213-
# uses: actions/download-artifact@v4
214-
# with:
215-
# name: build-windows
216-
# path: artifact
217-
#
218-
# - name: 下载macOS
219-
# uses: actions/download-artifact@v4
220-
# with:
221-
# name: build-macos
222-
# path: artifact
223-
#
224-
# - name: 创建releases
225-
# id: create_release
226-
# uses: softprops/action-gh-release@v2
227-
# with:
228-
# tag_name: ${{ needs.pre-build.outputs.APP_VERSION }}
229-
# files: ./artifact/*
230-
# body: "[CHANGELOG.md](CHANGELOG.md)"

0 commit comments

Comments
 (0)