Skip to content

Commit 834fe7d

Browse files
committed
update: ci
1 parent 9e250f9 commit 834fe7d

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
pull_request:
2222
paths: *ci-paths
2323

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
2428
jobs:
2529
# ── Analyze ──────────────────────────────────────────────────────────────────
2630
analyze:
@@ -32,6 +36,8 @@ jobs:
3236
- uses: subosito/flutter-action@v2
3337
with:
3438
channel: stable
39+
cache: true
40+
pub-cache: true
3541

3642
- name: Install dependencies
3743
run: dart pub get
@@ -51,6 +57,8 @@ jobs:
5157
- uses: subosito/flutter-action@v2
5258
with:
5359
channel: stable
60+
cache: true
61+
pub-cache: true
5462

5563
- name: Install system deps
5664
run: |
@@ -77,6 +85,8 @@ jobs:
7785
- uses: subosito/flutter-action@v2
7886
with:
7987
channel: stable
88+
cache: true
89+
pub-cache: true
8090

8191
- name: Install system deps
8292
run: |
@@ -109,6 +119,8 @@ jobs:
109119
- uses: subosito/flutter-action@v2
110120
with:
111121
channel: stable
122+
cache: true
123+
pub-cache: true
112124

113125
- name: Install Dart/Flutter dependencies
114126
run: dart pub get
@@ -131,6 +143,8 @@ jobs:
131143
- uses: subosito/flutter-action@v2
132144
with:
133145
channel: stable
146+
cache: true
147+
pub-cache: true
134148

135149
- name: Install dependencies
136150
run: dart pub get

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- uses: subosito/flutter-action@v2
1919
with:
2020
channel: stable
21+
cache: true
22+
pub-cache: true
2123

2224
- name: Install system deps
2325
run: |
@@ -53,6 +55,8 @@ jobs:
5355
- uses: subosito/flutter-action@v2
5456
with:
5557
channel: stable
58+
cache: true
59+
pub-cache: true
5660

5761
- name: Install dependencies
5862
run: dart pub get
@@ -129,6 +133,8 @@ jobs:
129133
- uses: subosito/flutter-action@v2
130134
with:
131135
channel: stable
136+
cache: true
137+
pub-cache: true
132138

133139
- name: Install dependencies
134140
run: dart pub get

0 commit comments

Comments
 (0)