Skip to content

Commit 7e6eb18

Browse files
authored
ci: update flutter & android environments (#28)
1 parent b25ac6e commit 7e6eb18

File tree

4 files changed

+25
-20
lines changed

4 files changed

+25
-20
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
3030

3131
- name: Setup Flutter SDK
32-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
32+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
3333
with:
3434
flutter-version: ${{ env.FLUTTER_VERSION }}
3535
channel: stable
@@ -41,19 +41,19 @@ jobs:
4141
run: make unit-test
4242

4343
build-example-app-android:
44-
runs-on: macos-13-xlarge
44+
runs-on: ubuntu-latest
4545
timeout-minutes: 45
4646
steps:
4747
- uses: actions/checkout@v4
4848

4949
- name: Cache Flutter dependencies
5050
uses: actions/cache@v4
5151
with:
52-
path: /Users/runner/hostedtoolcache/flutter # For mac OS
52+
path: ${{ runner.tool_cache }}/flutter
5353
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
5454

5555
- name: Setup Flutter SDK
56-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
56+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
5757
with:
5858
flutter-version: ${{ env.FLUTTER_VERSION }}
5959
channel: stable
@@ -68,19 +68,19 @@ jobs:
6868
make build-android
6969
7070
build-example-app-ios:
71-
runs-on: macos-13-xlarge
71+
runs-on: macos-15-xlarge
7272
timeout-minutes: 45
7373
steps:
7474
- uses: actions/checkout@v4
7575

7676
- name: Cache Flutter dependencies
7777
uses: actions/cache@v4
7878
with:
79-
path: /Users/runner/hostedtoolcache/flutter # For mac OS
79+
path: ${{ runner.tool_cache }}/flutter
8080
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
8181

8282
- name: Setup Flutter SDK
83-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
83+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
8484
with:
8585
flutter-version: ${{ env.FLUTTER_VERSION }}
8686
channel: stable

.github/workflows/e2e.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ env:
1414

1515
jobs:
1616
ios-integration-test:
17-
runs-on: macos-13-xlarge
17+
runs-on: macos-15-xlarge
1818
timeout-minutes: 45
1919
strategy:
2020
matrix:
2121
device:
2222
# the name of the simulator could be different depending on the macos version you are using
23-
- "iPhone 15 Simulator (17.2)"
23+
- "iPhone 16 Simulator (18.0)"
2424
fail-fast: false
2525
steps:
2626
- uses: actions/checkout@v4
@@ -40,11 +40,11 @@ jobs:
4040
- name: Cache Flutter dependencies
4141
uses: actions/cache@v4
4242
with:
43-
path: /Users/runner/hostedtoolcache/flutter # For mac OS
43+
path: ${{ runner.tool_cache }}/flutter
4444
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
4545

4646
- name: Setup Flutter SDK
47-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
47+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
4848
with:
4949
flutter-version: ${{ env.FLUTTER_VERSION }}
5050
channel: stable
@@ -59,13 +59,12 @@ jobs:
5959
run: make e2e
6060

6161
android-integration-test:
62-
# macos-13-xlarge is an M1 mac (which has no Android SDK)
63-
runs-on: macos-13-large
62+
runs-on: ubuntu-latest
6463
timeout-minutes: 45
6564
strategy:
6665
matrix:
6766
api-level:
68-
- 32
67+
- 33
6968
target:
7069
- google_apis
7170
arch:
@@ -79,11 +78,11 @@ jobs:
7978
- name: Cache Flutter dependencies
8079
uses: actions/cache@v4
8180
with:
82-
path: /Users/runner/hostedtoolcache/flutter # For mac OS
81+
path: ${{ runner.tool_cache }}/flutter
8382
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
8483

8584
- name: Setup Flutter SDK
86-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
85+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
8786
with:
8887
flutter-version: ${{ env.FLUTTER_VERSION }}
8988
channel: stable
@@ -100,9 +99,15 @@ jobs:
10099
~/.android/adb*
101100
key: avd-${{ matrix.api-level }}
102101

102+
- name: Enable KVM
103+
run: |
104+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
105+
sudo udevadm control --reload-rules
106+
sudo udevadm trigger --name-match=kvm
107+
103108
- name: Create AVD and generate snapshot for caching
104109
if: steps.avd-cache.outputs.cache-hit != 'true'
105-
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
110+
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
106111
with:
107112
api-level: ${{ matrix.api-level }}
108113
target: ${{ matrix.target }}
@@ -118,7 +123,7 @@ jobs:
118123
BKT_API_KEY: ${{ secrets.BKT_API_KEY }}
119124
BKT_API_ENDPOINT: ${{ secrets.BKT_API_ENDPOINT }}
120125
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxMetaspaceSize=2g"
121-
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
126+
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
122127
with:
123128
api-level: ${{ matrix.api-level }}
124129
target: ${{ matrix.target }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
2525

2626
- name: Setup Flutter SDK
27-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
27+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.13.0
2828
with:
2929
flutter-version: ${{ env.FLUTTER_VERSION }}
3030
channel: "stable"

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
2727

2828
- name: Setup Flutter SDK
29-
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0
29+
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.13.0
3030
with:
3131
flutter-version: ${{ env.FLUTTER_VERSION }}
3232
channel: stable

0 commit comments

Comments
 (0)