Skip to content

Commit a10a7cb

Browse files
Split tests into matrix
1 parent 883773f commit a10a7cb

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,32 @@ jobs:
1919
path: ~/.m2
2020
if-no-files-found: error
2121

22-
- run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;26.3.11579264"
22+
test:
23+
runs-on: ubuntu-22.04
24+
needs: build
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
testcase:
29+
- 0_sample_library
30+
- 1_cmake_layout
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-java@v4
34+
with:
35+
distribution: temurin
36+
java-version: 17
2337

38+
- run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;26.3.11579264"
2439
- uses: actions/setup-python@v5
2540
with:
2641
python-version: 3.12
2742
- run: pip install conan
2843

29-
- run: ./gradlew assemble
30-
working-directory: tests/0_sample_library
44+
- uses: actions/download-artifact@v4
45+
with:
46+
name: maven-local
47+
path: ~/.m2
3148

3249
- run: ./gradlew assemble
33-
working-directory: tests/1_cmake_layout
50+
working-directory: tests/${{ matrix.testcase }}

0 commit comments

Comments
 (0)