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 23, 2024
1 parent 3fdad07 commit 675916c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 117 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-latest, 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
50 changes: 26 additions & 24 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 Down Expand Up @@ -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

0 comments on commit 675916c

Please sign in to comment.