Skip to content

Commit

Permalink
Add macos-14 images to GitHub actions. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdumas authored Mar 12, 2024
1 parent f55620c commit c446fe5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/continuous.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12]
os: [ubuntu-22.04, macos-13, macos-14]
config: [RelwithDebInfo, Debug]
compiler: [gcc, apple, llvm]
sanitizer: ["Address", "Thread"] # TODO: Add Memory+Undefined Sanitizer
exclude:
- os: macos-12
- os: macos-13
compiler: gcc
- os: macos-13
sanitizer: Thread
- os: macos-13
config: Debug
- os: macos-14
compiler: gcc
- os: ubuntu-22.04
compiler: apple
Expand Down Expand Up @@ -83,6 +89,12 @@ jobs:
echo "CXX='$(brew --prefix llvm@17)/bin/clang++'" >> $GITHUB_ENV
fi
- name: Setup Xcode version
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-22.04', 'macos-12', 'windows-2022']
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]

name: ${{matrix.os}}
runs-on: ${{matrix.os}}
Expand All @@ -19,6 +19,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Xcode version
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'

- name: Setup Python
uses: actions/setup-python@v5
with:
Expand All @@ -42,7 +48,6 @@ jobs:
path: ./wheelhouse/*.whl



upload_pypi:
name: Upload wheels to PyPI
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions cmake/recipes/external/embree.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ function(embree_import_target)
add_library(embree::embree INTERFACE IMPORTED GLOBAL)
target_include_directories(embree::embree SYSTEM INTERFACE ${embree_SOURCE_DIR}/include)
target_link_libraries(embree::embree INTERFACE embree)

# Generate a dummy .cpp for embree's math library, to workaround a weird link issue with
# LLVM-Clang on macOS
# Generate implementation file
file(WRITE "${embree_BINARY_DIR}/embree_math_dummy.cpp.in" [[
namespace embree {
void math_dummy() {}
}
]])
configure_file(${embree_BINARY_DIR}/embree_math_dummy.cpp.in ${embree_BINARY_DIR}/embree_math_dummy.cpp COPYONLY)
target_sources(math PRIVATE ${embree_BINARY_DIR}/embree_math_dummy.cpp)
endfunction()

# Call via a proper function in order to scope variables such as CMAKE_FIND_PACKAGE_PREFER_CONFIG and TBB_DIR
Expand Down

0 comments on commit c446fe5

Please sign in to comment.