Skip to content

Commit 6c0980b

Browse files
committed
ci: remove ios, msvs jobs, add vcpkg-ios job, papki -> fsif
1 parent db20176 commit 6c0980b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+98
-4529
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -311,52 +311,6 @@ jobs:
311311
- name: deploy
312312
run: myci-deploy-homebrew.sh --tap cppfw/tap
313313
if: startsWith(github.ref, 'refs/tags/')
314-
##### ios #####
315-
ios:
316-
runs-on: macos-latest
317-
steps:
318-
- name: workaround python2 and python3 issue when upgrading python
319-
run : |
320-
rm -rf /usr/local/bin/2to3*
321-
rm -rf /usr/local/bin/idle3*
322-
rm -rf /usr/local/bin/pydoc3*
323-
rm -rf /usr/local/bin/python3
324-
rm -rf /usr/local/bin/python3-config
325-
rm -rf /usr/local/bin/python3*
326-
rm -rf /usr/local/bin/python3*-config
327-
- name: add cppfw tap
328-
run: |
329-
brew tap cppfw/tap
330-
brew update
331-
- name: install ci tools
332-
run: brew install myci
333-
- name: git clone
334-
uses: myci-actions/checkout@main
335-
- name: set PACKAGE_VERSION
336-
uses: myci-actions/export-env-var@main
337-
with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh)}
338-
- name: add cocoapods repo
339-
run: pod repo add --silent cppfw https://$MYCI_GIT_USERNAME@github.com/cppfw/cocoapods-repo.git
340-
- name: install deps
341-
run: pod install --project-directory=xcode
342-
- name: add sources to xcode project
343-
run: |
344-
curl -L https://github.com/zackslash/Xcode-Proj-Adder/raw/master/bin/XcodeProjAdder -O
345-
chmod +x XcodeProjAdder
346-
cd xcode/$PACKAGE_NAME
347-
../../XcodeProjAdder -XCP $PACKAGE_NAME.xcodeproj -SCSV `echo $(find ../../src -type f -name *.cpp) | sed -E -e 's/ /,/g'`
348-
- name: build
349-
run: |
350-
xcodebuild CONFIGURATION_BUILD_DIR=../build_ios -sdk iphoneos -workspace xcode/$PACKAGE_NAME.xcworkspace -scheme $PACKAGE_NAME -configuration Release
351-
xcodebuild CONFIGURATION_BUILD_DIR=../build_iossim -sdk iphonesimulator -workspace xcode/$PACKAGE_NAME.xcworkspace -scheme $PACKAGE_NAME -configuration Release
352-
xcodebuild -create-xcframework -framework "xcode/build_ios/$PACKAGE_NAME.framework" -framework "xcode/build_iossim/$PACKAGE_NAME.framework" -output "xcode/$PACKAGE_NAME.xcframework"
353-
- name: create package
354-
run: myci-create-zip-package.sh --headers-dir src --file xcode/$PACKAGE_NAME.xcframework///lib/ios --file LICENSE $PACKAGE_NAME-$PACKAGE_VERSION.zip
355-
- name: deploy
356-
run: |
357-
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
358-
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
359-
if: startsWith(github.ref, 'refs/tags/')
360314
##### android #####
361315
android:
362316
runs-on: ubuntu-latest
@@ -437,31 +391,6 @@ jobs:
437391
myci-deploy-pacman-ssh.sh --server gagis.hopto.org --key repo_key_rsa --repo cppfw/msys2/${{ matrix.repo }} --database cppfw_${{ matrix.repo }} $f
438392
done
439393
if: startsWith(github.ref, 'refs/tags/')
440-
##### msvs #####
441-
msvs:
442-
runs-on: windows-latest
443-
defaults:
444-
run:
445-
shell: powershell
446-
steps:
447-
- name: git clone
448-
uses: actions/checkout@v3
449-
- name: install CoAPP tools
450-
uses: myci-actions/install-coapp-tools@main
451-
- name: nuget update
452-
run: |
453-
nuget restore msvs_solution/msvs_solution.sln
454-
nuget update msvs_solution/msvs_solution.sln
455-
- name: add msbuild to PATH
456-
uses: microsoft/setup-msbuild@v1.1
457-
- name: build
458-
run: .\nuget\build_nuget.ps1
459-
- name: deploy
460-
uses: myci-actions/publish-nuget@main
461-
with:
462-
filename: '.\nuget\*.nupkg'
463-
api-key: ${{ secrets.NUGET_DOT_ORG_API_KEY }}
464-
if: startsWith(github.ref, 'refs/tags/')
465394
##### vcpkg-linux #####
466395
vcpkg-linux:
467396
strategy:
@@ -556,6 +485,63 @@ jobs:
556485
path: |
557486
vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
558487
build/vcpkg/**/*.log
488+
##### vcpkg-ios #####
489+
vcpkg-ios:
490+
runs-on: macos-latest
491+
strategy:
492+
fail-fast: false
493+
matrix:
494+
config:
495+
- Debug
496+
- Release
497+
name: vcpkg - ios | ${{ matrix.config }}
498+
steps:
499+
- name: workaround python2 and python3 issue when upgrading python
500+
run : |
501+
rm -rf /usr/local/bin/2to3*
502+
rm -rf /usr/local/bin/idle3*
503+
rm -rf /usr/local/bin/pydoc3*
504+
rm -rf /usr/local/bin/python3
505+
rm -rf /usr/local/bin/python3-config
506+
rm -rf /usr/local/bin/python3*
507+
rm -rf /usr/local/bin/python3*-config
508+
- name: git clone
509+
uses: myci-actions/checkout@main
510+
with:
511+
submodules: true # non-recursive, no remote
512+
- name: install vcpkg
513+
run: |
514+
git clone https://github.com/microsoft/vcpkg.git vcpkg-installation
515+
(cd vcpkg-installation; ./bootstrap-vcpkg.sh)
516+
- name: set VCPKG_ROOT
517+
uses: myci-actions/export-env-var@main
518+
with: {name: VCPKG_ROOT, value: "$(pwd)/vcpkg-installation"}
519+
- name: add VCPKG_ROOT to PATH
520+
uses: myci-actions/export-env-var@main
521+
with: {name: PATH, value: "$PATH:$VCPKG_ROOT"}
522+
- name: add cppfw tap
523+
run: |
524+
brew tap cppfw/tap
525+
brew update
526+
- name: install ci tools
527+
run: brew install myci cmake
528+
- name: prepare vcpkg port
529+
run: |
530+
myci-vcpkg-prepare.sh --git-ref ${{ github.sha }}
531+
- name: test vcpkg port
532+
run: |
533+
cd build/vcpkg/test
534+
cmake -G Xcode -D CMAKE_SYSTEM_NAME=iOS -D VCPKG_TARGET_TRIPLET=arm64-ios-simulator .
535+
cmake --build . --parallel --config ${{ matrix.config }} -- -sdk iphonesimulator -arch arm64
536+
# ./test
537+
- name: upload vcpkg logs to artifacts
538+
if: always() # even if previous steps fail, this one needs to be run
539+
uses: actions/upload-artifact@v4
540+
with:
541+
name: vcpkg_ios_${{ matrix.config }}_logs
542+
path: |
543+
vcpkg-installation/buildtrees/${{ env.PACKAGE_NAME }}/
544+
build/vcpkg/**/*.log
559545
##### conan - linux #####
560546
conan-linux:
561547
strategy:

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ image:wiki/camera.png[image sample]
1313
**{name}** uses **link:https://github.com/cppfw/svgdom[svgdom]** to read the SVG file and **link:http://github.com/cppfw/agg[AGG]** to render graphics.
1414

1515
= Installation and Tutorials
16-
Read link:wiki/Main.adoc[WiKi] for installation instructions and tutorials.
16+
Read link:wiki/main.adoc[WiKi] for installation instructions and tutorials.
1717

1818
= Projects using {name}
1919
link:wiki/usages.adoc[See list here].

build/cocoapods/svgren.podspec.in

Lines changed: 0 additions & 21 deletions
This file was deleted.

build/vcpkg/test/vcpkg-configuration.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
{
99
"kind": "git",
1010
"repository": "https://github.com/cppfw/vcpkg-repo/",
11-
"baseline": "1f2290382f6d31870139666276c1aa04bc925885",
11+
"baseline": "2a83a4f54975ff94bdd2adf7f96e6bcfefa31560",
1212
"reference": "main",
1313
"packages": [
1414
"myci",
1515
"utki",
16-
"papki",
16+
"fsif",
1717
"mikroxml",
1818
"cssom",
1919
"svgdom",

0 commit comments

Comments
 (0)