@@ -21,16 +21,16 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
name : Build release-apk
23
23
steps :
24
- - uses : styfle/cancel-workflow-action@0.11.0
24
+ - uses : styfle/cancel-workflow-action@0.12.1
25
25
with :
26
26
workflow_id : android-ci.yml
27
27
all_but_latest : true
28
28
access_token : ${{ github.token }}
29
29
30
- - uses : actions/checkout@v3
30
+ - uses : actions/checkout@v4
31
31
32
32
# - uses: nelonoel/branch-name@v1.0.1
33
- - uses : Wohlstand/branch-name@v1.0.1 -wohl
33
+ - uses : Wohlstand/branch-name@v1.0.2 -wohl
34
34
35
35
- name : Pull submodules
36
36
shell : bash
@@ -45,17 +45,18 @@ jobs:
45
45
sudo apt-get install -qq lftp
46
46
47
47
- name : Set up JDK 17
48
- uses : actions/setup-java@v3.11.0
48
+ uses : actions/setup-java@v4.2.1
49
49
with :
50
50
java-version : 17
51
51
distribution : ' temurin'
52
52
53
- # Without NDK not compile and not normal error message. NDK is required
54
- - name : Install NDK
55
- run : echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;22.1.7171670" --sdk_root=${ANDROID_SDK_ROOT}
56
- # Some times is have problems with permissions for ./gradle file. Then uncommit it code
57
- # - name: Make gradlew executable
58
- # run: chmod +x ./gradlew
53
+ - uses : nttld/setup-ndk@v1
54
+ with :
55
+ ndk-version : r23c
56
+ # IMPORTANT NOTE: The SDK r23b is REQUIRED to support Android 4.1, 4.2, and 4.3, and to support non-Neon hardware
57
+
58
+ - name : Setup Android SDK
59
+ uses : android-actions/setup-android@v3
59
60
60
61
- name : Output version code
61
62
run : echo VERSION_CODE=${{ github.run_number }} > ./version.properties
@@ -87,14 +88,14 @@ jobs:
87
88
88
89
- name : Upload APK
89
90
if : success()
90
- uses : actions/upload-artifact@v3
91
+ uses : actions/upload-artifact@v4
91
92
with :
92
93
name : OPNMIDI-Player-android-APK
93
94
path : OPNMIDI-Player-android-*.apk
94
95
95
96
- name : Upload AAB
96
97
if : success()
97
- uses : actions/upload-artifact@v3
98
+ uses : actions/upload-artifact@v4
98
99
with :
99
100
name : OPNMIDI-Player-android-AAB
100
101
path : OPNMIDI-Player-android-*.aab
0 commit comments