1- name : macOS
1+ name : macOS x86_64
22
33on :
44 push :
@@ -11,26 +11,31 @@ jobs:
1111 runs-on : macos-13
1212
1313 steps :
14- - uses : szenius/set-timezone@v1.2
15- with :
16- timezoneLinux : " Asia/Shanghai"
17- timezoneMacos : " Asia/Shanghai"
18- timezoneWindows : " China Standard Time"
19-
20- - uses : actions/checkout@v3
21-
22- - name : Install Dependencies
23- shell : bash
24- run : |
25- brew install cmake openssl gflags googletest gsasl
26-
27- - name : Build
28- run : |
29- cmake -B ${{github.workspace}}/build -D PHOTON_BUILD_TESTING=ON -D CMAKE_BUILD_TYPE=Release \
30- -D PHOTON_ENABLE_SASL=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3
31- cmake --build ${{github.workspace}}/build -j $(nproc)
32-
33- - name : Test
34- working-directory : ${{github.workspace}}/build
35- run : ctest -E test-lockfree --timeout 3600 -V
36-
14+ - uses : szenius/set-timezone@v2.0
15+ with :
16+ timezoneLinux : " Asia/Shanghai"
17+ timezoneMacos : " Asia/Shanghai"
18+ timezoneWindows : " China Standard Time"
19+
20+ - uses : actions/checkout@v4
21+
22+ - name : Install Dependencies
23+ shell : bash
24+ run : |
25+ brew install openssl gflags googletest gsasl nasm
26+
27+ - name : Build
28+ run : |
29+ cmake -B ${{github.workspace}}/build \
30+ -D PHOTON_CXX_STANDARD=17 \
31+ -D PHOTON_ENABLE_ECOSYSTEM=ON \
32+ -D PHOTON_BUILD_TESTING=ON \
33+ -D CMAKE_BUILD_TYPE=MinSizeRel \
34+ -D PHOTON_ENABLE_SASL=ON \
35+ -D PHOTON_ENABLE_LIBCURL=ON \
36+ -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@3
37+ cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
38+
39+ - name : Test
40+ working-directory : ${{github.workspace}}/build
41+ run : ctest -E test-lockfree --timeout 3600 -V
0 commit comments