Skip to content

Commit

Permalink
Prep for 0.1.7 release (#115)
Browse files Browse the repository at this point in the history
- Updates changelog
- Don't build with SIMD support on OSX
  • Loading branch information
aliddell authored Oct 2, 2023
1 parent ade7b6b commit 1ed340f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,11 @@ jobs:

- uses: actions/checkout@v3
with:
submodules: recursive

- name: Build
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
cmake --build ${{github.workspace}}/build --config Release
- name: Test # don't release unless tests pass
working-directory: ${{github.workspace}}/build
run: ctest -C Release -L anyplatform --output-on-failure
submodules: true

- name: Package
run: |
cmake -B ${{github.workspace}}/pack -DCMAKE_BUILD_TYPE=Release -DNOTEST=1
cmake -B ${{github.workspace}}/pack -DCMAKE_BUILD_TYPE=Release -DNOTEST=1 -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
cmake --build ${{github.workspace}}/pack --config Release
cpack --config ${{github.workspace}}/pack/CPackConfig.cmake -C Release -G ZIP
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.1.7](https://github.com/acquire-project/acquire-driver-hdcam/compare/v0.1.6...v0.1.7) - 2023-10-02

### Fixes

- Driver builds as an OSX universal binary.

## [0.1.6](https://github.com/acquire-project/acquire-driver-hdcam/compare/v0.1.5...v0.1.6) - 2023-08-15

Expand Down
21 changes: 12 additions & 9 deletions cmake/simd.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
include(cmake/TargetArch.cmake)

function(target_enable_simd tgt)
target_architecture(arch)
set(is_gcc_like "$<OR:$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang,GNU>,$<COMPILE_LANG_AND_ID:C,AppleClang,Clang,GNU>>")
set(is_msvc_like "$<OR:$<COMPILE_LANG_AND_ID:CXX,MSVC>,$<COMPILE_LANG_AND_ID:C,MSVC>>")
set(is_arch_x64 "$<STREQUAL:${arch},x86_64>")
target_compile_options(${tgt} PRIVATE
$<$<AND:${is_arch_x64},${is_gcc_like}>:-mavx2>
$<$<AND:${is_arch_x64},${is_msvc_like}>:/arch:AVX2>
)
endfunction()
if(NOT APPLE)
# Broken on osx github runners for some reason
target_architecture(arch)
set(is_gcc_like "$<OR:$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang,GNU>,$<COMPILE_LANG_AND_ID:C,AppleClang,Clang,GNU>>")
set(is_msvc_like "$<OR:$<COMPILE_LANG_AND_ID:CXX,MSVC>,$<COMPILE_LANG_AND_ID:C,MSVC>>")
set(is_arch_x64 "$<STREQUAL:${arch},x86_64>")
target_compile_options(${tgt} PRIVATE
$<$<AND:${is_arch_x64},${is_gcc_like}>:-mavx2>
$<$<AND:${is_arch_x64},${is_msvc_like}>:/arch:AVX2>
)
endif()
endfunction()

0 comments on commit 1ed340f

Please sign in to comment.