-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.25 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: build
on: push
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- run: ./gradlew publishToMavenLocal
- uses: actions/upload-artifact@v4
with:
name: maven-local
path: ~/.m2
if-no-files-found: error
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
testcase:
- sample_library
- cmake_layout
- no_default_profile_installed
- conanfile_dot_py
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- run: ./gradlew publishToMavenLocal
- run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;26.3.11579264"
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install conan
- run: conan profile detect
if: ${{ matrix.testcase != 'no_default_profile_installed' }}
- run: conan profile list
- run: ./gradlew assemble
working-directory: tests/${{ matrix.testcase }}