Skip to content

Commit 22d6625

Browse files
committed
Refreshed the CI build
1 parent 79f9599 commit 22d6625

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/android-ci.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
runs-on: ubuntu-latest
2222
name: Build release-apk
2323
steps:
24-
- uses: styfle/cancel-workflow-action@0.11.0
24+
- uses: styfle/cancel-workflow-action@0.12.1
2525
with:
2626
workflow_id: android-ci.yml
2727
all_but_latest: true
2828
access_token: ${{ github.token }}
2929

30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131

3232
# - 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
3434

3535
- name: Pull submodules
3636
shell: bash
@@ -45,17 +45,18 @@ jobs:
4545
sudo apt-get install -qq lftp
4646
4747
- name: Set up JDK 17
48-
uses: actions/setup-java@v3.11.0
48+
uses: actions/setup-java@v4.2.1
4949
with:
5050
java-version: 17
5151
distribution: 'temurin'
5252

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
5960

6061
- name: Output version code
6162
run: echo VERSION_CODE=${{ github.run_number }} > ./version.properties
@@ -87,14 +88,14 @@ jobs:
8788
8889
- name: Upload APK
8990
if: success()
90-
uses: actions/upload-artifact@v3
91+
uses: actions/upload-artifact@v4
9192
with:
9293
name: OPNMIDI-Player-android-APK
9394
path: OPNMIDI-Player-android-*.apk
9495

9596
- name: Upload AAB
9697
if: success()
97-
uses: actions/upload-artifact@v3
98+
uses: actions/upload-artifact@v4
9899
with:
99100
name: OPNMIDI-Player-android-AAB
100101
path: OPNMIDI-Player-android-*.aab

0 commit comments

Comments
 (0)