mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-09 20:25:46 -04:00
build-multiplatform checks android only on java 17
And we don't need tests since we have a different way to test that
This commit is contained in:
parent
2937e88f09
commit
0a274a28a8
34
.github/workflows/buildMultiplatform.yml
vendored
34
.github/workflows/buildMultiplatform.yml
vendored
@ -11,45 +11,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# Job to execute code checks and unit tests on the project source
|
|
||||||
code-checks:
|
|
||||||
name: Check code and run unit tests (Java ${{ matrix.java_version }})
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java_version:
|
|
||||||
- 11
|
|
||||||
- 17
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
cache: 'gradle'
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: ${{ matrix.java_version }}
|
|
||||||
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/gradle-build-action@v2.11.1
|
|
||||||
|
|
||||||
- name: Setup Android SDK
|
|
||||||
uses: android-actions/setup-android@v3
|
|
||||||
|
|
||||||
- name: Compile kotlin and build classes
|
|
||||||
run: ./gradlew classes
|
|
||||||
|
|
||||||
- name: Run code checks
|
|
||||||
run: ./gradlew check
|
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
run: ./gradlew --no-build-cache cleanTest test tests:test
|
|
||||||
|
|
||||||
# Job to build the android files on a Ubuntu host
|
# Job to build the android files on a Ubuntu host
|
||||||
build-android:
|
build-android:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java_version:
|
java_version:
|
||||||
- 11
|
|
||||||
- 17
|
- 17
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build Android (Java ${{ matrix.java_version }})
|
name: Build Android (Java ${{ matrix.java_version }})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user