@@ -128,22 +128,11 @@ jobs:
128128
129129 - name : Build recipes with our patches
130130 run : |
131- echo "CONAN_HOME=$(conan config home)" >> $GITHUB_ENV
132- echo "UPLOAD_QT=1" >> $GITHUB_ENV
133- set -x
134131 cciRepo='conan-center-index'
135132 branchName='master'
136133 recipePathQt='recipes/qt'
137134 custom_patches_path="$(pwd)/deps/conan_patches"
138135
139- #extraAndroidOptions="-o qt/*:android_sdk=$ANDROID_HOME"
140- #extraOptionsBash=${{ startsWith(matrix.platform, 'android') && '"-o qt/*:android_sdk=$ANDROID_HOME"' || '' }}
141-
142- function slash_to_backslash {
143- slash=/
144- echo "${1//$slash/\\}"
145- }
146-
147136 git clone "https://github.com/conan-io/$cciRepo.git" \
148137 --branch "$branchName" \
149138 --no-checkout \
@@ -155,13 +144,12 @@ jobs:
155144 git sparse-checkout set \
156145 recipes/minizip \
157146 recipes/flac \
158- $recipePathQt \
159147
160148 git checkout
161149
162150 # versions must be synced with: conan_patches/<package>/conandata.yml
163151 # if no custom patches are required for a package, it should be removed from here
164- for p in minizip/1.3.1 flac/1.4.2 qt/5.15.16 ; do
152+ for p in minizip/1.3.1 flac/1.4.2 ; do
165153 IFS_OLD="$IFS"
166154 IFS=/
167155 read package version <<<"$p"
@@ -173,33 +161,21 @@ jobs:
173161 packagePath="recipes/$package/all"
174162 fi
175163
176- conanCreateCommand=" conan create $packagePath \
164+ conan create $packagePath \
177165 --version=$version \
178166 --profile=../CI/conan/${{ matrix.conan_profile }} \
179167 --build=missing \
180168 --test-folder= \
181- --core-conf core.sources.patch:extra_path=$custom_patches_path \
182- "
183- # $(slash_to_backslash "$conanCreateCommand")
184- # Windows workaround for https://bugreports.qt.io/browse/QTBUG-84543
185- PATH="/c/Strawberry/perl/bin:$PATH" $conanCreateCommand ${{ startsWith(matrix.platform, 'android') && '-o "qt/*:android_sdk=$ANDROID_HOME"' || '' }}
169+ --core-conf core.sources.patch:extra_path=$custom_patches_path
186170 done
187- echo "UPLOAD_QT=0" >> $GITHUB_ENV
188171
189- - name : Upload Qt
190- if : ${{ always() && env.UPLOAD_QT == 1 }}
191- uses : actions/upload-artifact@v4
192- with :
193- name : ${{ matrix.platform }}-qt
194- path : |
195- ${{ env.CONAN_HOME }}/p/b/qt*
196-
197- # TODO: remove when https://github.com/conan-io/conan-center-index/pull/26577 is merged
198- - name : Build LuaJIT from PR changes
172+ # TODO: remove LuaJIT when https://github.com/conan-io/conan-center-index/pull/26577 is merged
173+ - name : Build LuaJIT & Qt from PR changes
199174 run : |
200175 cciForkRepo='cci-fork'
201- branchName='package/luajit'
202- recipePath='recipes/luajit'
176+ branchName='vcmi'
177+ recipePathQt='recipes/qt'
178+ custom_patches_path="$(pwd)/deps/conan_patches"
203179
204180 git clone "https://github.com/kambala-decapitator/conan-center-index.git" "$cciForkRepo" \
205181 --branch "$branchName" \
@@ -209,14 +185,33 @@ jobs:
209185 --single-branch \
210186 --sparse
211187 cd "$cciForkRepo"
212- git sparse-checkout set "$recipePath"
188+ git sparse-checkout set \
189+ recipes/luajit \
190+ $recipePathQt \
191+
213192 git checkout
214193
215- conan create "$recipePath/all" \
216- --version=2.1.0-beta3 \
217- --profile=../CI/conan/${{ matrix.conan_profile }} \
218- --build=missing \
219- --test-folder=''
194+ for p in luajit/2.1.0-beta3 qt/5.15.16 ; do
195+ IFS_OLD="$IFS"
196+ IFS=/
197+ read package version <<<"$p"
198+ IFS="$IFS_OLD"
199+
200+ if [[ $package == qt ]] ; then
201+ packagePath="$recipePathQt/5.x.x"
202+ else
203+ packagePath="recipes/$package/all"
204+ fi
205+
206+ # Windows workaround for https://bugreports.qt.io/browse/QTBUG-84543
207+ PATH="/c/Strawberry/perl/bin:$PATH" conan create $packagePath \
208+ --version=$version \
209+ --profile=../CI/conan/${{ matrix.conan_profile }} \
210+ --build=missing \
211+ --test-folder= \
212+ --core-conf core.sources.patch:extra_path=$custom_patches_path \
213+ ${{ startsWith(matrix.platform, 'android') && '-o "qt/*:android_sdk=$ANDROID_HOME"' || '' }}
214+ done
220215
221216 - name : Generate conan profile
222217 run : |
@@ -226,16 +221,6 @@ jobs:
226221 --profile=CI/conan/${{ matrix.conan_profile }} \
227222 ${{ matrix.conan_options }} || true
228223
229- - name : Upload artifact
230- uses : actions/upload-artifact@v4
231- with :
232- name : ${{ matrix.platform }}
233- path : |
234- ${{ env.CONAN_HOME }}/p/b/ffmp*/b/build-release
235- ${{ env.CONAN_HOME }}/p/zlib*/p
236-
237- - run : exit 1
238-
239224 - name : Remove builds and source code
240225 run : conan cache clean
241226
0 commit comments