46
46
cc : clang
47
47
cxx : clang++
48
48
name : Linux-x64-clang
49
+ - runner : ubuntu-latest
50
+ name : Android
49
51
build_type :
50
52
- Debug
51
53
- Release
62
64
brew bundle install
63
65
64
66
- name : Install Linux dependencies
65
- if : ${{ matrix.os.preset == 'linux' }}
67
+ if : ${{ matrix.os.preset == 'linux' || matrix.os.name == 'Android' }}
66
68
run : |
67
69
sudo apt update
68
70
sudo apt install -y --no-install-recommends \
@@ -71,30 +73,45 @@ jobs:
71
73
- name : Install Windows dependencies
72
74
if : ${{ matrix.os.runner == 'windows-latest' }}
73
75
run : choco install ninja
74
-
76
+
75
77
- uses : ilammy/msvc-dev-cmd@v1
76
78
if : ${{ matrix.os.runner == 'windows-latest' }}
77
79
with :
78
80
arch : win64
79
81
82
+ - uses : actions/setup-java@v4
83
+ if : ${{ matrix.os.name == 'Android' }}
84
+ with :
85
+ java-version : ' 17'
86
+ distribution : ' temurin'
87
+
88
+ - name : Build APK
89
+ if : ${{ matrix.os.name == 'Android' }}
90
+ run : ./gradlew build
91
+
80
92
- name : Configure CMake
93
+ if : ${{ matrix.os.name != 'Android' }}
81
94
env :
82
95
CC : ${{ matrix.os.cc }}
83
96
CXX : ${{ matrix.os.cxx }}
84
97
VCPKG_ROOT : C:/vcpkg
85
98
run : cmake --preset ${{ matrix.os.preset }} -DBUILD_TESTING=ON -DENABLE_LOGGER=ON -DFORCE_PORTABLE_INSTALL=ON -DBUILD_EDITOR=ON
86
99
87
100
- name : Build ${{ matrix.build_type }}
101
+ if : ${{ matrix.os.name != 'Android' }}
88
102
run : cmake --build --preset ${{ matrix.os.preset }} --config ${{ matrix.build_type }} --verbose
89
103
90
104
- name : Run ${{ matrix.build_type }} Unittests
105
+ if : ${{ matrix.os.name != 'Android' }}
91
106
run : ctest --preset ${{ matrix.os.preset }} -C ${{ matrix.build_type }}
92
107
93
108
- name : Local install
109
+ if : ${{ matrix.os.name != 'Android' }}
94
110
# There no cmake install presets so install in traditional way
95
111
run : cmake --install builds/${{ matrix.os.preset }}/ --config ${{ matrix.build_type }}
96
112
97
113
- name : Upload Artifacts
114
+ if : ${{ matrix.os.name != 'Android' }}
98
115
uses : actions/upload-artifact@v4
99
116
with :
100
117
name : Descent3_${{ matrix.build_type }}_${{ matrix.os.name }}
0 commit comments