Skip to content

Commit

Permalink
Restore osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Apr 24, 2024
1 parent 3fdad07 commit 37b0ff8
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 119 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/vcpkg-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
cfg:
- { os: ubuntu-latest, triplet: x64-linux }
- { os: windows-2022, triplet: x64-windows-static-vs2022 }
#- { os: macos-latest, triplet: x64-osx-10_15 }
- { os: macos-13, triplet: x64-osx }

steps:
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -42,3 +42,14 @@ jobs:
run: ./deps/vcpkg/vcpkg fetch ninja
- name: Build the code
run: python build.py --triplet ${{ matrix.cfg.triplet }} --run-tests --dist
- name: Archive build logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: build-logs
path: |
deps/vcpkg/buildtrees/**/config*.log
deps/vcpkg/buildtrees/**/build*.log
deps/vcpkg/buildtrees/**/install*.log
deps/vcpkg/buildtrees/**/package*.log
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
url = https://github.com/VITObelgium/cpp-infra.git
[submodule "deps/vcpkg"]
path = deps/vcpkg
url = https://github.com/VITObelgium/vcpkg-ports.git
url = git@github.com:VITObelgium/vcpkg-ports.git
[submodule "deps/geodynamix"]
path = deps/geodynamix
url = https://github.com/VITObelgium/geodynamix.git
52 changes: 27 additions & 25 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/vcpkg",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/deps/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_APPLOCAL_DEPS": "OFF",
"VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkg_installed",
"BUILD_TESTING": "ON",
"VCPKG_MANIFEST_MODE": "OFF"
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/deps/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_APPLOCAL_DEPS": "OFF",
"VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkg_installed",
"BUILD_TESTING": "ON",
"VCPKG_MANIFEST_MODE": "OFF"
},
"environment": {
"VCPKG_OVERLAY_PORTS": "${sourceDir}/deps/overlay-ports"
Expand All @@ -27,7 +27,7 @@
"inherits": "vcpkg-base",
"hidden": true,
"cacheVariables": {
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.3",
"VCPKG_OSX_DEPLOYMENT_TARGET": "11.3",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/deps/vcpkg/triplets/toolchain-osx-appleclang.cmake",
"VCPKG_CXX_FLAGS": "-fvisibility=hidden -fvisibility-inlines-hidden"
}
Expand All @@ -46,26 +46,26 @@
}
},
{
"name": "x64-windows-static-vs2022 debug",
"inherits": "windows-base",
"displayName": "Windows x64 Debug",
"description": "Vcpkg debug build for x64 on windows",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-vs2022",
"VCPKG_DEFAULT_HOST_TRIPLET": "x64-windows-static-vs2022",
"CMAKE_BUILD_TYPE": "Debug"
}
"name": "x64-windows-static-vs2022 debug",
"inherits": "windows-base",
"displayName": "Windows x64 Debug",
"description": "Vcpkg debug build for x64 on windows",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-vs2022",
"VCPKG_DEFAULT_HOST_TRIPLET": "x64-windows-static-vs2022",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x64-windows-static-vs2022 release",
"inherits": "windows-base",
"displayName": "Windows x64 Release",
"description": "Vcpkg release build for x64 on windows",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-vs2022",
"VCPKG_DEFAULT_HOST_TRIPLET": "x64-windows-static-vs2022",
"CMAKE_BUILD_TYPE": "Release"
}
"name": "x64-windows-static-vs2022 release",
"inherits": "windows-base",
"displayName": "Windows x64 Release",
"description": "Vcpkg release build for x64 on windows",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-vs2022",
"VCPKG_DEFAULT_HOST_TRIPLET": "x64-windows-static-vs2022",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "arm64-osx",
Expand All @@ -75,7 +75,9 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-osx",
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_BUILD_TYPE": "Release"
"CMAKE_BUILD_TYPE": "Release",
"VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkgs-arm64-osx",
"VCPKG_ALLOW_SYSTEM_LIBS": "ON"
}
},
{
Expand Down
90 changes: 0 additions & 90 deletions CMakeSettings.json

This file was deleted.

2 changes: 1 addition & 1 deletion deps/infra
Submodule infra updated 2 files
+1 −1 CMakeLists.txt
+1 −1 deps/vcpkg
2 changes: 1 addition & 1 deletion deps/vcpkg
Submodule vcpkg updated 46 files
+1 −0 .gitattributes
+0 −7 ports/cryptopp/CONTROL
+0 −15 ports/cryptopp/cmake.patch
+34 −12 ports/cryptopp/patch.patch
+42 −22 ports/cryptopp/portfile.cmake
+22 −0 ports/cryptopp/vcpkg.json
+3 −3 ports/geos/CONTROL
+41 −40 ports/geos/portfile.cmake
+215 −194 ports/libjpeg-turbo/add-options-for-exes-docs-headers.patch
+1 −1 ports/libjpeg-turbo/portfile.cmake
+38 −38 ports/libjpeg-turbo/vcpkg-cmake-wrapper.cmake
+1 −2 ports/libjpeg-turbo/vcpkg.json
+13 −13 ports/libjpeg-turbo/workaround_cmake_system_processor.patch
+1 −1 ports/libspatialite/CONTROL
+0 −183 ports/libxml2/CMakeLists.txt
+0 −56 ports/libxml2/config.linux.h
+0 −54 ports/libxml2/config.osx.h
+20 −0 ports/libxml2/disable-docs.patch
+119 −0 ports/libxml2/fix_cmakelist.patch
+73 −34 ports/libxml2/portfile.cmake
+0 −4 ports/libxml2/rcVersion.h.in
+1 −2 ports/libxml2/usage
+3 −33 ports/libxml2/vcpkg-cmake-wrapper.cmake
+56 −6 ports/libxml2/vcpkg.json
+0 −3 ports/shapelib/CONTROL
+0 −13 ports/shapelib/option-build-test.patch
+63 −35 ports/shapelib/portfile.cmake
+23 −0 ports/shapelib/vcpkg.json
+0 −3 ports/vc/CONTROL
+22 −0 ports/vc/correct_cmake_config_path.patch
+12 −25 ports/vc/portfile.cmake
+18 −0 ports/vc/vcpkg.json
+54 −0 ports/zlib/0002-build-static-or-shared-not-both.patch
+15 −6 ports/zlib/0003-android-and-mingw-fixes.patch
+0 −20 ports/zlib/LICENSE
+0 −13 ports/zlib/add_debug_postfix_on_mingw.patch
+0 −74 ports/zlib/cmake_dont_build_more_than_needed.patch
+27 −30 ports/zlib/portfile.cmake
+12 −12 ports/zlib/vcpkg-cmake-wrapper.cmake
+9 −2 ports/zlib/vcpkg.json
+37 −9 triplets/toolchain-osx-appleclang.cmake
+0 −1 triplets/universal-osx.cmake
+1 −1 triplets/x64-linux-musl.cmake
+1 −2 triplets/x64-osx-10_15.cmake
+1 −2 triplets/x64-osx-gcc.cmake
+2 −2 triplets/x64-osx.cmake

0 comments on commit 37b0ff8

Please sign in to comment.