forked from jbaldwin/libcoro
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.9 KB
/
ci-macos.yml
File metadata and controls
56 lines (54 loc) · 1.9 KB
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
name: ci-macos
on: [pull_request, workflow_dispatch]
jobs:
macos:
name: macos-15
runs-on: macos-15
strategy:
fail-fast: false
matrix:
clang_version: [20]
cxx_standard: [20, 23]
libcoro_feature_networking:
[
{ enabled: ON, tls: ON },
{ enabled: ON, tls: OFF },
{ enabled: OFF, tls: OFF },
]
libcoro_build_shared_libs: [OFF, ON]
steps:
- name: Install Dependencies
run: |
brew update
brew install llvm@${{ matrix.clang_version }}
brew install ninja
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Mark repository as safe
run: git config --global --add safe.directory "*"
- name: Release
run: |
brew --prefix llvm@${{ matrix.clang_version }}
ls $(brew --prefix llvm@${{ matrix.clang_version }})/bin
mkdir Release
cd Release
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=$(brew --prefix llvm@${{ matrix.clang_version }})/bin/clang-${{ matrix.clang_version }} \
-DCMAKE_CXX_COMPILER=$(brew --prefix llvm@${{ matrix.clang_version }})/bin/clang-${{ matrix.clang_version }} \
-DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} \
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \
-DLIBCORO_BUILD_SHARED_LIBS=${{ matrix.libcoro_build_shared_libs }} \
..
cmake --build . --config Release
- name: Test
run: |
cd Release
# lldb -b -o r -- ctest --build-config Release -VV
ctest --build-config Release -VV