ci: create simpler Gradle testspriteminimal project instead

This commit is contained in:
Anonymous Maarten
2024-06-18 00:38:35 +02:00
parent 1a68d846de
commit 122c3e6a81
+13 -6
View File
@@ -40,25 +40,25 @@ jobs:
- name: Create Gradle project - name: Create Gradle project
if: ${{ matrix.platform.gradle }} if: ${{ matrix.platform.gradle }}
run: | run: |
build-scripts/androidbuild.sh org.libsdl.testcontroller src/test/SDL_test_* test/testcontroller.c test/gamepad* test/testutils* build-scripts/androidbuild.sh org.libsdl.testspriteminimal test/testspriteminimal.c test/icon.h
echo "" echo ""
echo "Project contents:" echo "Project contents:"
echo "" echo ""
find "build/org.libsdl.testcontroller" find "build/org.libsdl.testspriteminimal"
- name: Build app (Gradle & ndk-build) - name: Build app (Gradle & ndk-build)
if: ${{ matrix.platform.gradle }} if: ${{ matrix.platform.gradle }}
run: | run: |
cd build/org.libsdl.testcontroller cd build/org.libsdl.testspriteminimal
./gradlew -i assembleRelease ./gradlew -i assembleRelease
- name: Build app (Gradle & CMake) - name: Build app (Gradle & CMake)
if: ${{ matrix.platform.gradle }} if: ${{ matrix.platform.gradle }}
run: | run: |
cd build/org.libsdl.testcontroller cd build/org.libsdl.testspriteminimal
./gradlew -i assembleRelease -PBUILD_WITH_CMAKE=1 ./gradlew -i assembleRelease -PBUILD_WITH_CMAKE=1
# - name: Build library (Gradle) # - name: Build library (Gradle)
# if: ${{ matrix.platform.gradle }} # if: ${{ matrix.platform.gradle }}
# run: | # run: |
# cd build/org.libsdl.testcontroller # cd build/org.libsdl.testspriteminimal
# ./gradlew -i assembleRelease -PBUILD_AS_LIBRARY=1 # ./gradlew -i assembleRelease -PBUILD_AS_LIBRARY=1
- name: Setup (CMake) - name: Setup (CMake)
if: ${{ matrix.platform.cmake }} if: ${{ matrix.platform.cmake }}
@@ -94,7 +94,14 @@ jobs:
- name: Build test apk's (CMake) - name: Build test apk's (CMake)
if: ${{ matrix.platform.cmake }} if: ${{ matrix.platform.cmake }}
run: | run: |
cmake --build build --config Release --parallel --verbose --target testautomation-apk testaudiorecording-apk testcontroller-apk testmultiaudio-apk testsprite-apk cmake --build build --config Release --parallel \
--target \
testaudiorecording-apk \
testautomation-apk \
testcontroller-apk \
testmultiaudio-apk \
testsprite-apk \
--verbose
- name: Install (CMake) - name: Install (CMake)
if: ${{ matrix.platform.cmake }} if: ${{ matrix.platform.cmake }}
run: | run: |