Skip to content

Commit 1d31c7a

Browse files
print NDK path
1 parent 87d62b3 commit 1d31c7a

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/rebuildDependencies.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,28 @@ jobs:
191191
--build=missing \
192192
--test-folder=''
193193
194-
# must run in the native platform shell: Qt doesn't build in bash on Windows
195194
- name: Generate conan profile
196195
run: |
197-
conan install . -of conan-generated -b missing -pr CI/conan/${{ matrix.conan_profile }} ${{ matrix.conan_options }}
196+
conan install . \
197+
--output-folder=conan-generated \
198+
--build=missing \
199+
--profile=CI/conan/${{ matrix.conan_profile }} \
200+
${{ matrix.conan_options }}
198201
199202
- name: Remove builds and source code
200203
run: conan cache clean
201204

205+
- name: Get NDK path
206+
if: ${{ startsWith(matrix.platform, 'android') }}
207+
run: |
208+
ndkPackage="android-ndk"
209+
hexRegex="[[:xdigit:]]+"
210+
211+
ndkPackageRevision=$(conan list --format=compact "$ndkPackage/*:*" \
212+
| egrep --only-matching "$ndkPackage/\\w+#$hexRegex:$hexRegex")
213+
ndkPackagePath=$(conan cache path "$ndkPackageRevision")
214+
echo "NDK directory: $ndkPackagePath"
215+
202216
- name: Remove build requirements' binaries
203217
run: |
204218
buildPackages=$(conan graph info . \

0 commit comments

Comments
 (0)