Skip to content

Commit

Permalink
Add CI job for macOS x64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
kimci86 committed May 17, 2024
1 parent 248da94 commit 4b236ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ jobs:
matrix:
platform:
- { name: Ubuntu, os: ubuntu-latest }
- { name: MacOS, os: macos-latest }
- {
name: macOS x64,
os: macos-latest,
cmake-config: -DCMAKE_APPLE_SILICON_PROCESSOR=x86_64,
}
- {
name: macOS arm64,
os: macos-latest,
cmake-config: -DCMAKE_APPLE_SILICON_PROCESSOR=arm64,
}
- { name: Windows 64-bit, os: windows-latest, cmake-config: -A x64 }
- { name: Windows 32-bit, os: windows-latest, cmake-config: -A Win32 }

Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ if(WIN32)
else()
set(CPACK_GENERATOR "TGZ")
endif()
if(APPLE)
set(CPACK_SYSTEM_NAME "macOS-${CMAKE_HOST_SYSTEM_PROCESSOR}")
endif()
include(CPack)

0 comments on commit 4b236ee

Please sign in to comment.