Skip to content

Commit

Permalink
Refreshed the CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Jul 10, 2024
1 parent 79f9599 commit 22d6625
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 22d6625

Please sign in to comment.