-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,16 +21,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Build release-apk | ||
steps: | ||
- uses: styfle/cancel-workflow-action@0.11.0 | ||
- uses: styfle/cancel-workflow-action@0.12.1 | ||
with: | ||
workflow_id: android-ci.yml | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
# - uses: nelonoel/[email protected] | ||
- uses: Wohlstand/[email protected].1-wohl | ||
- uses: Wohlstand/[email protected].2-wohl | ||
|
||
- name: Pull submodules | ||
shell: bash | ||
|
@@ -45,17 +45,18 @@ jobs: | |
sudo apt-get install -qq lftp | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3.11.0 | ||
uses: actions/setup-java@v4.2.1 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
|
||
# Without NDK not compile and not normal error message. NDK is required | ||
- name: Install NDK | ||
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;22.1.7171670" --sdk_root=${ANDROID_SDK_ROOT} | ||
# Some times is have problems with permissions for ./gradle file. Then uncommit it code | ||
# - name: Make gradlew executable | ||
# run: chmod +x ./gradlew | ||
- uses: nttld/setup-ndk@v1 | ||
with: | ||
ndk-version: r23c | ||
# IMPORTANT NOTE: The SDK r23b is REQUIRED to support Android 4.1, 4.2, and 4.3, and to support non-Neon hardware | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Output version code | ||
run: echo VERSION_CODE=${{ github.run_number }} > ./version.properties | ||
|
@@ -87,14 +88,14 @@ jobs: | |
- name: Upload APK | ||
if: success() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: OPNMIDI-Player-android-APK | ||
path: OPNMIDI-Player-android-*.apk | ||
|
||
- name: Upload AAB | ||
if: success() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: OPNMIDI-Player-android-AAB | ||
path: OPNMIDI-Player-android-*.aab | ||
|