File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed
Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 5757 - name : " test"
5858 run : ./build/src/libunicode/unicode_test
5959
60+ # {{{ macOS
61+ osx :
62+ name : " macOS"
63+ runs-on : macos-14
64+ steps :
65+ - uses : actions/checkout@v4
66+ - name : ccache
67+ uses : hendrikmuhs/ccache-action@v1.2
68+ with :
69+ key : ccache-osx_qt${{ steps.set_vars.outputs.QTVER }}-r1
70+ max-size : 256M
71+ - name : " Install dependencies"
72+ # Sometimes, brew thinks it needs to install from source rather than binary.
73+ # For Qt this may take ages (many many hours). Let's not waste our CPU credits here,
74+ # and limit the run time.
75+ timeout-minutes : 15
76+ run : |
77+ set -ex
78+ #brew update
79+ ./scripts/install-deps.sh
80+ - name : " Create build directory"
81+ run : mkdir build
82+ - name : " Generate build files"
83+ run : cmake --preset macos-release
84+ - name : " Build"
85+ run : cmake --build --preset macos-release
86+ - name : " Test"
87+ run : ctest --preset macos-release
88+ # }}}
89+
6090 windows :
6191 name : " Windows"
6292 runs-on : windows-latest
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ install_deps_darwin()
194194 # catch2: available in brew, but too new (version 3+)
195195 brew install $SYSDEP_ASSUME_YES \
196196 fmt \
197+ ninja \
197198 pkg-config \
198199 range-v3
199200}
Original file line number Diff line number Diff line change 2323#include < string_view>
2424
2525// clang-format off
26- #if __has_include(<experimental/simd>) && defined(LIBUNICODE_USE_STD_SIMD)
26+ #if __has_include(<experimental/simd>) && defined(LIBUNICODE_USE_STD_SIMD) && !defined(__APPLE__)
2727 #define USE_STD_SIMD
2828 #include < experimental/simd>
2929 namespace stdx = std::experimental;
You can’t perform that action at this time.
0 commit comments