Skip to content

Commit

Permalink
[github-actions] fix existing checks failures due to workflows settin…
Browse files Browse the repository at this point in the history
…gs (#300)
  • Loading branch information
ZhangLe2016 authored Oct 9, 2024
1 parent 64928ae commit caaeaac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android-app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build
run: |
cd android
ANDROID_ABI=${{ matrix.android-abi }} ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "24.*") ./build-commissioner-libs.sh
ANDROID_ABI=${{ matrix.android-abi }} ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "26.*") ./build-commissioner-libs.sh
cd openthread_commissioner
./gradlew build
- name: Tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/android-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ jobs:
- name: Build APK
run: |
cd android
ANDROID_ABI=armeabi-v7a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "24.*") ./build-commissioner-libs.sh
ANDROID_ABI=arm64-v8a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "24.*") ./build-commissioner-libs.sh
ANDROID_ABI=armeabi-v7a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "26.*") ./build-commissioner-libs.sh
ANDROID_ABI=arm64-v8a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "26.*") ./build-commissioner-libs.sh
cd openthread_commissioner
./gradlew assembleDebug
cp app/build/outputs/apk/debug/app-debug.apk \
ot-commissioner-app-debug-${{ steps.check_release_version.outputs.release_version }}.apk
- name: Upload APK for release
if: success() && github.repository == 'openthread/ot-commissioner' && github.event_name != 'pull_request'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ot-commissioner-app-debug-v${{ steps.check_release_version.outputs.release_version }}
path: ./android/openthread_commissioner/ot-commissioner-app-debug-*.apk
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ jobs:
- name: Build
run: |
cd android
ANDROID_ABI=armeabi-v7a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "24.*") ./build-commissioner-libs.sh
ANDROID_ABI=arm64-v8a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "24.*") ./build-commissioner-libs.sh
ANDROID_ABI=armeabi-v7a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "26.*") ./build-commissioner-libs.sh
ANDROID_ABI=arm64-v8a ANDROID_NDK_HOME=$(find $ANDROID_HOME/ndk -name "26.*") ./build-commissioner-libs.sh
java-binding:
runs-on: macos-12
Expand Down
3 changes: 3 additions & 0 deletions script/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ elif [ "$(uname)" = "Darwin" ]; then
brew unlink cmake
brew install cmake --HEAD
}

## Install coreutils for realpath
brew install coreutils
else
echo "platform $(uname) is not fully supported"
exit 1
Expand Down

0 comments on commit caaeaac

Please sign in to comment.