-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 921 Bytes
/
deploy-macos.yml
File metadata and controls
39 lines (31 loc) · 921 Bytes
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 deploy
on: [workflow_dispatch]
env:
BUILD_TYPE: Release # Change build type here.
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Conan
shell: bash
run: |
brew install conan
conan profile new default --detect --force
- name: Build
shell: bash
run: |
cd build
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_C_COMPILER="$(brew --prefix llvm)/bin/clang" \
-DCMAKE_CXX_COMPILER="$(brew --prefix llvm)/bin/clang++" -DDISABLE_LINTERS="" -DDISABLE_TESTS=""
cmake --build . --config $BUILD_TYPE
- name: Upload binaries
uses: actions/upload-artifact@v2
with:
name: Binaries_macos_x64
path: build/bin/
- name: Upload libs
uses: actions/upload-artifact@v2
with:
name: Libs_macos_x64
path: build/lib/