Skip to content

Commit

Permalink
fix(ci): Fix github actions to build android app
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed May 5, 2024
1 parent fba03fa commit 1da2580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/android-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
java-version: 17

# Build from command line as Autobuild fails
- run: |
echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "build-tools;34.0.0" --sdk_root=${ANDROID_SDK_ROOT}
echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;25.2.9519653" --sdk_root=${ANDROID_SDK_ROOT}
- run: |
./gradlew assembleRelease
- name: Perform CodeQL Analysis
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

# Manually install latest build tools (takes up to two weeks to update in action images)
- name: Install latest build tools
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "build-tools;34.0.0" --sdk_root=${ANDROID_SDK_ROOT}

- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;25.2.9519653" --sdk_root=${ANDROID_SDK_ROOT}

- name: Run unit tests
run: ./gradlew test --stacktrace

Expand All @@ -47,7 +40,7 @@ jobs:
# path: app/build/outputs/apk/release/app-release-unsigned.apk

- name: Update dependency graph
uses: mikepenz/gradle-dependency-submission@v0.8.5
uses: mikepenz/gradle-dependency-submission@v0.8.5 # Deprecated: need to be changed
with:
gradle-dependency-path: "app/build.gradle"
gradle-build-module: ":app"
Expand Down

0 comments on commit 1da2580

Please sign in to comment.