@@ -159,52 +159,6 @@ jobs:
159159 - name : deploy
160160 run : myci-deploy-homebrew.sh --tap cppfw/tap
161161 if : startsWith(github.ref, 'refs/tags/')
162- # #### ios #####
163- ios :
164- runs-on : macos-latest
165- steps :
166- - name : workaround python2 and python3 issue when upgrading python
167- run : |
168- rm -rf /usr/local/bin/2to3*
169- rm -rf /usr/local/bin/idle3*
170- rm -rf /usr/local/bin/pydoc3*
171- rm -rf /usr/local/bin/python3
172- rm -rf /usr/local/bin/python3-config
173- rm -rf /usr/local/bin/python3*
174- rm -rf /usr/local/bin/python3*-config
175- - name : add cppfw tap
176- run : |
177- brew tap cppfw/tap
178- brew update
179- - name : install ci tools
180- run : brew install myci
181- - name : git clone
182- uses : myci-actions/checkout@main
183- - name : set PACKAGE_VERSION
184- uses : myci-actions/export-env-var@main
185- with : {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
186- - name : add cocoapods repo
187- run : pod repo add --silent cppfw https://$MYCI_GIT_USERNAME@github.com/cppfw/cocoapods-repo.git
188- - name : install deps
189- run : pod install --project-directory=xcode
190- - name : add sources to xcode project
191- run : |
192- curl -L https://github.com/zackslash/Xcode-Proj-Adder/raw/master/bin/XcodeProjAdder -O
193- chmod +x XcodeProjAdder
194- cd xcode/$PACKAGE_NAME
195- ../../XcodeProjAdder -XCP $PACKAGE_NAME.xcodeproj -SCSV `echo $(ls ../../src/agg/src/*.cpp) | sed -E -e 's/ /,/g'`
196- - name : build
197- run : |
198- xcodebuild CONFIGURATION_BUILD_DIR=../build_ios -sdk iphoneos -workspace xcode/$PACKAGE_NAME.xcworkspace -scheme $PACKAGE_NAME -configuration Release
199- xcodebuild CONFIGURATION_BUILD_DIR=../build_iossim -sdk iphonesimulator -workspace xcode/$PACKAGE_NAME.xcworkspace -scheme $PACKAGE_NAME -configuration Release
200- xcodebuild -create-xcframework -framework "xcode/build_ios/$PACKAGE_NAME.framework" -framework "xcode/build_iossim/$PACKAGE_NAME.framework" -output "xcode/$PACKAGE_NAME.xcframework"
201- - name : create package
202- run : myci-create-zip-package.sh --headers-dir src/agg/include --file xcode/$PACKAGE_NAME.xcframework///lib/ios --file LICENSE $PACKAGE_NAME-$PACKAGE_VERSION.zip
203- - name : deploy
204- run : |
205- echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
206- myci-deploy-cocoapods-ssh.sh --repo cppfw --version $PACKAGE_VERSION --server gagis.hopto.org --key repo_key_rsa --generic-repo cppfw/cocoapods --package $PACKAGE_NAME-$PACKAGE_VERSION.zip build/cocoapods/$PACKAGE_NAME.podspec.in
207- if : startsWith(github.ref, 'refs/tags/')
208162# #### android #####
209163 android :
210164 runs-on : ubuntu-latest
@@ -285,31 +239,6 @@ jobs:
285239 myci-deploy-pacman-ssh.sh --server gagis.hopto.org --key repo_key_rsa --repo cppfw/msys2/${{ matrix.repo }} --database cppfw_${{ matrix.repo }} $f
286240 done
287241 if : startsWith(github.ref, 'refs/tags/')
288- # #### msvs #####
289- msvs :
290- runs-on : windows-latest
291- defaults :
292- run :
293- shell : powershell
294- steps :
295- - name : git clone
296- uses : actions/checkout@v3
297- - name : install CoAPP tools
298- uses : myci-actions/install-coapp-tools@main
299- - name : nuget update
300- run : |
301- nuget restore msvs_solution/msvs_solution.sln
302- nuget update msvs_solution/msvs_solution.sln
303- - name : add msbuild to PATH
304- uses : microsoft/setup-msbuild@v1.1
305- - name : build
306- run : .\nuget\build_nuget.ps1
307- - name : deploy
308- uses : myci-actions/publish-nuget@main
309- with :
310- filename : ' .\nuget\*.nupkg'
311- api-key : ${{ secrets.NUGET_DOT_ORG_API_KEY }}
312- if : startsWith(github.ref, 'refs/tags/')
313242# #### vcpkg-linux #####
314243 vcpkg-linux :
315244 strategy :
@@ -404,6 +333,63 @@ jobs:
404333 path : |
405334 vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
406335 build/vcpkg/**/*.log
336+ # #### vcpkg-ios #####
337+ vcpkg-ios :
338+ runs-on : macos-latest
339+ strategy :
340+ fail-fast : false
341+ matrix :
342+ config :
343+ - Debug
344+ - Release
345+ name : vcpkg - ios | ${{ matrix.config }}
346+ steps :
347+ - name : workaround python2 and python3 issue when upgrading python
348+ run : |
349+ rm -rf /usr/local/bin/2to3*
350+ rm -rf /usr/local/bin/idle3*
351+ rm -rf /usr/local/bin/pydoc3*
352+ rm -rf /usr/local/bin/python3
353+ rm -rf /usr/local/bin/python3-config
354+ rm -rf /usr/local/bin/python3*
355+ rm -rf /usr/local/bin/python3*-config
356+ - name : git clone
357+ uses : myci-actions/checkout@main
358+ with :
359+ submodules : true # non-recursive, no remote
360+ - name : install vcpkg
361+ run : |
362+ git clone https://github.com/microsoft/vcpkg.git vcpkg-installation
363+ (cd vcpkg-installation; ./bootstrap-vcpkg.sh)
364+ - name : set VCPKG_ROOT
365+ uses : myci-actions/export-env-var@main
366+ with : {name: VCPKG_ROOT, value: "$(pwd)/vcpkg-installation"}
367+ - name : add VCPKG_ROOT to PATH
368+ uses : myci-actions/export-env-var@main
369+ with : {name: PATH, value: "$PATH:$VCPKG_ROOT"}
370+ - name : add cppfw tap
371+ run : |
372+ brew tap cppfw/tap
373+ brew update
374+ - name : install ci tools
375+ run : brew install myci cmake
376+ - name : prepare vcpkg port
377+ run : |
378+ myci-vcpkg-prepare.sh --git-ref ${{ github.sha }}
379+ - name : test vcpkg port
380+ run : |
381+ cd build/vcpkg/test
382+ cmake -G Xcode -D CMAKE_SYSTEM_NAME=iOS -D VCPKG_TARGET_TRIPLET=arm64-ios-simulator .
383+ cmake --build . --parallel --config ${{ matrix.config }} -- -sdk iphonesimulator -arch arm64
384+ # ./test
385+ - name : upload vcpkg logs to artifacts
386+ if : always() # even if previous steps fail, this one needs to be run
387+ uses : actions/upload-artifact@v4
388+ with :
389+ name : vcpkg_ios_${{ matrix.config }}_logs
390+ path : |
391+ vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
392+ build/vcpkg/**/*.log
407393# #### conan - linux #####
408394 conan-linux :
409395 strategy :
0 commit comments