-
Notifications
You must be signed in to change notification settings - Fork 120
39 lines (32 loc) · 1.04 KB
/
ci.macos.arm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: macOS ARM
on:
push:
branches: [ "main", "release/*" ]
pull_request:
branches: [ "main", "release/*" ]
jobs:
macOS14-arm:
runs-on: macos-14
steps:
- uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/checkout@v4
- name: Install Dependencies
shell: bash
run: |
brew install cmake openssl gflags googletest gsasl
- name: Build
run: |
cmake -B ${{github.workspace}}/build \
-D PHOTON_ENABLE_ECOSYSTEM=ON \
-D PHOTON_BUILD_TESTING=ON \
-D CMAKE_BUILD_TYPE=MinSizeRel \
-D PHOTON_ENABLE_SASL=ON \
-D OPENSSL_ROOT_DIR=/opt/homebrew/Cellar/openssl@1.1/1.1.1w
cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -E test-lockfree --timeout 3600 -V