Skip to content

Commit be712c7

Browse files
author
Jesus Oliver
committed
Changed github actions to install cmake in docker image and properly set NDK path for android natives
1 parent 605866a commit be712c7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,28 @@ jobs:
111111
uses: actions/checkout@v4
112112
with:
113113
fetch-depth: 1
114+
115+
- name: Setup Java 11
116+
uses: actions/setup-java@v4
117+
with:
118+
distribution: temurin
119+
java-version: '11'
120+
121+
- name: Check java version
122+
run: java -version
123+
124+
- name: Install CMake
125+
run: |
126+
apt-get update
127+
apt-get install -y cmake
128+
cmake --version
129+
114130
- name: Validate the Gradle wrapper
115131
uses: gradle/actions/wrapper-validation@v3
132+
116133
- name: Build
117134
run: |
135+
export ANDROID_NDK="$ANDROID_SDK_ROOT/ndk/$ANDROID_NDK_VERSION"
118136
./gradlew -PuseCommitHashAsVersionName=true --no-daemon -PbuildNativeProjects=true \
119137
:jme3-android-native:assemble
120138

0 commit comments

Comments
 (0)