-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (83 loc) · 2.74 KB
/
macos.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: MacOS
on:
push:
branches:
- 'main'
- 'releases/**'
pull_request:
env:
BUILD_TYPE: Release
TBB_VERSION: 2021.11.0
jobs:
macos-arm64:
env:
PACKAGE_NAME: stage-macos-arm64
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Env
run: |
mkdir -p ${{github.workspace}}/dependencies
mkdir -p ${{github.workspace}}/build
mkdir -p ${{github.workspace}}/install/${PACKAGE_NAME}
- name: Download TBB
working-directory: ${{github.workspace}}/dependencies
run: |
arch -arm64 brew update
arch -arm64 brew install tbb
- name: Configure
working-directory: ${{github.workspace}}/build
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/${PACKAGE_NAME}
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DCMAKE_OSX_ARCHITECTURES="arm64"
-DSTAGE_LOGGING_OFF=ON
-DBUILD_SHARED_LIBS=ON
-DTBB_DIR=${{github.workspace}}/dependencies/oneapi-tbb-${TBB_VERSION}/lib/cmake/tbb/
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . -j --target install
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{env.PACKAGE_NAME}}
path: ${{github.workspace}}/install
macos-x86_64:
env:
PACKAGE_NAME: stage-macos-x86_64
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Env
run: |
mkdir -p ${{github.workspace}}/dependencies
mkdir -p ${{github.workspace}}/build
mkdir -p ${{github.workspace}}/install/${PACKAGE_NAME}
- name: Download TBB
working-directory: ${{github.workspace}}/dependencies
run: |
arch -x86_64 brew update
arch -x86_64 brew install tbb
- name: Configure
working-directory: ${{github.workspace}}/build
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/${PACKAGE_NAME}
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DCMAKE_OSX_ARCHITECTURES="x86_64"
-DSTAGE_LOGGING_OFF=ON
-DBUILD_SHARED_LIBS=ON
-DTBB_DIR=${{github.workspace}}/dependencies/oneapi-tbb-${TBB_VERSION}/lib/cmake/tbb/
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . -j --target install
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{env.PACKAGE_NAME}}
path: ${{github.workspace}}/install