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 \
@@ -81,23 +83,38 @@ jobs:
81
83
with :
82
84
vcpkgJsonGlob : vcpkg.json
83
85
86
+ - uses : actions/setup-java@v4
87
+ if : ${{ matrix.os.name == 'Android' }}
88
+ with :
89
+ java-version : ' 17'
90
+ distribution : ' temurin'
91
+
92
+ - name : Build APK
93
+ if : ${{ matrix.os.name == 'Android' }}
94
+ run : ./gradlew build
95
+
84
96
- name : Configure CMake
97
+ if : ${{ matrix.os.name != 'Android' }}
85
98
env :
86
99
CC : ${{ matrix.os.cc }}
87
100
CXX : ${{ matrix.os.cxx }}
88
101
run : cmake --preset ${{ matrix.os.preset }} -DBUILD_TESTING=ON -DENABLE_LOGGER=ON -DFORCE_PORTABLE_INSTALL=ON -DBUILD_EDITOR=ON
89
102
90
103
- name : Build ${{ matrix.build_type }}
104
+ if : ${{ matrix.os.name != 'Android' }}
91
105
run : cmake --build --preset ${{ matrix.os.preset }} --config ${{ matrix.build_type }} --verbose
92
106
93
107
- name : Run ${{ matrix.build_type }} Unittests
108
+ if : ${{ matrix.os.name != 'Android' }}
94
109
run : ctest --preset ${{ matrix.os.preset }} -C ${{ matrix.build_type }}
95
110
96
111
- name : Local install
112
+ if : ${{ matrix.os.name != 'Android' }}
97
113
# There no cmake install presets so install in traditional way
98
114
run : cmake --install builds/${{ matrix.os.preset }}/ --config ${{ matrix.build_type }}
99
115
100
116
- name : Upload Artifacts
117
+ if : ${{ matrix.os.name != 'Android' }}
101
118
uses : actions/upload-artifact@v4
102
119
with :
103
120
name : Descent3_${{ matrix.build_type }}_${{ matrix.os.name }}
0 commit comments