Skip to content

Commit 0264231

Browse files
authored
[CI] bump workflow actions to use node-v20 runtime (#1634)
* [CI] bump workflow actions to use node-v20 runtime * [CI] bump more workflow actions to use node-v20 runtime * [GHA] android_integration_test: use cacheV4 and set safe-always to true * [GHA] android_integration_test: bump setup-android action * [GHA] fix jdk version for new android setup * [GHA] remove save-always cache flag
1 parent 84dae6a commit 0264231

5 files changed

+19
-24
lines changed

.github/workflows/android_build.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
pull_request:
77
branches: [master, f-droid]
88

9-
env:
10-
JAVA_VERSION: 12.x
11-
129
# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is
1310
# triggered (ref https://stackoverflow.com/a/72408109)
1411
concurrency:
@@ -21,12 +18,12 @@ jobs:
2118
timeout-minutes: 60
2219
steps:
2320
# Setup Environment
24-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2522

26-
- uses: actions/setup-java@v3
23+
- uses: actions/setup-java@v4
2724
with:
28-
java-version: ${{ env.JAVA_VERSION }}
29-
distribution: "zulu"
25+
java-version: "17"
26+
distribution: "temurin"
3027

3128
- name: Install flutter wrapper
3229
run: ./scripts/install_flutter_wrapper.sh

.github/workflows/android_integration_test.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
branches: [master, f-droid]
88

99
env:
10-
JAVA_VERSION: 12.x
1110
ARTIFACT_PATH: ./screenshots
1211

1312
# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is
@@ -35,18 +34,18 @@ jobs:
3534
fail-fast: false
3635
steps:
3736
# Setup Environment
38-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3938

40-
- uses: actions/setup-java@v3
39+
- uses: actions/setup-java@v4
4140
with:
42-
java-version: ${{ env.JAVA_VERSION }}
43-
distribution: "zulu"
41+
java-version: "17"
42+
distribution: "temurin"
4443

4544
- name: Install flutter wrapper
4645
run: ./scripts/install_flutter_wrapper.sh
4746

4847
- name: Setup Android SDK and accept licences
49-
uses: android-actions/setup-android@v2
48+
uses: android-actions/setup-android@v3
5049

5150
- name: List android images
5251
run: sdkmanager --list | grep system-images
@@ -58,15 +57,15 @@ jobs:
5857
run: .flutter/bin/dart run melos bootstrap
5958

6059
- name: Gradle cache
61-
uses: actions/cache@v3
60+
uses: actions/cache@v4
6261
with:
6362
path: |
6463
~/.gradle/caches
6564
~/.gradle/wrapper
6665
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
6766

6867
- name: AVD cache
69-
uses: actions/cache@v3
68+
uses: actions/cache@v4
7069
id: avd-cache
7170
with:
7271
path: |
@@ -115,7 +114,7 @@ jobs:
115114

116115
- name: "Upload screenshots"
117116
if: always()
118-
uses: actions/upload-artifact@v3
117+
uses: actions/upload-artifact@v4
119118
with:
120119
name: ${{ matrix.device }}
121120
path: ${{ env.ARTIFACT_PATH }}

.github/workflows/fdroid.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
timeout-minutes: 30
1919
steps:
2020
# Setup Environment
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Check fdroid setup
2424
run: ./scripts/fdroid_init.sh

.github/workflows/ios_integration_test.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
branches: [master, f-droid]
1010

1111
env:
12-
JAVA_VERSION: 12.x
1312
ARTIFACT_PATH: ./screenshots
1413

1514
# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is
@@ -43,7 +42,7 @@ jobs:
4342
fail-fast: false
4443
steps:
4544
# Setup Environment
46-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4746

4847
- name: prepare xcode
4948
uses: maxim-lobanov/setup-xcode@v1
@@ -54,10 +53,10 @@ jobs:
5453
working-directory: ./scripts
5554
run: ./ios_init_env.sh
5655

57-
- uses: actions/setup-java@v3
56+
- uses: actions/setup-java@v4
5857
with:
59-
java-version: ${{ env.JAVA_VERSION }}
60-
distribution: "zulu"
58+
java-version: "17"
59+
distribution: "temurin"
6160

6261
- name: Install flutter wrapper
6362
run: ./scripts/install_flutter_wrapper.sh
@@ -118,7 +117,7 @@ jobs:
118117

119118
- name: "Upload screenshots and recording"
120119
if: always()
121-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
122121
with:
123122
name: ${{ matrix.device }}
124123
path: ${{ env.ARTIFACT_PATH }}

.github/workflows/unit_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
timeout-minutes: 30
1919
steps:
2020
# Setup Environment
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Install flutter wrapper
2424
run: ./scripts/install_flutter_wrapper.sh

0 commit comments

Comments
 (0)