Skip to content

Commit fb2adc4

Browse files
CI: Build against minimum and maximum supported Android SDK
1 parent bf4f9ea commit fb2adc4

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ jobs:
135135
build-android:
136136
runs-on: ubuntu-latest
137137

138+
strategy:
139+
fail-fast: false
140+
matrix:
141+
android_api: [26, 36]
142+
138143
steps:
139144
- name: Checkout repository
140145
uses: actions/checkout@v4
@@ -157,23 +162,27 @@ jobs:
157162
cache: true
158163
extra: --autodesktop
159164

160-
- name: Build and install qtkeychain (Android)
165+
- name: Build and install qtkeychain (Android API ${{ matrix.android_api }})
161166
run: |
162167
cmake -S ${{ github.workspace }} -B build/qtkeychain \
163168
-DCMAKE_TOOLCHAIN_FILE=$QT_ROOT_DIR/lib/cmake/Qt6/qt.toolchain.cmake \
164169
-DCMAKE_BUILD_TYPE=Release \
165170
-DBUILD_WITH_QT6=ON \
166-
-DBUILD_TRANSLATIONS=OFF
171+
-DBUILD_TRANSLATIONS=OFF \
172+
-DQT_ANDROID_MIN_SDK_VERSION=${{ matrix.android_api }} \
173+
-DQT_ANDROID_TARGET_SDK_VERSION=${{ matrix.android_api }}
167174
cmake --build build/qtkeychain
168175
cmake --install build/qtkeychain --prefix ${{ github.workspace }}/install
169176
170-
- name: Build TestAppExample (Android)
177+
- name: Build TestAppExample (Android API ${{ matrix.android_api }})
171178
run: |
172179
cmake -S ${{ github.workspace }}/TestAppExample -B build/testapp \
173180
-DCMAKE_TOOLCHAIN_FILE=$QT_ROOT_DIR/lib/cmake/Qt6/qt.toolchain.cmake \
174181
-DCMAKE_BUILD_TYPE=Release \
175182
-DQt6Keychain_DIR=${{ github.workspace }}/install/lib/cmake/Qt6Keychain \
176-
-DBUILD_WITH_QT6=ON
183+
-DBUILD_WITH_QT6=ON \
184+
-DQT_ANDROID_MIN_SDK_VERSION=${{ matrix.android_api }} \
185+
-DQT_ANDROID_TARGET_SDK_VERSION=${{ matrix.android_api }}
177186
cmake --build build/testapp
178187
179188
build-ios:

0 commit comments

Comments
 (0)