-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1.06 KB
/
macos_test.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
name: Build TgBot++ (macOS)
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/[email protected]
# https://github.com/Homebrew/homebrew-core/issues/169820#issuecomment-2080459578
- name: Set up dependencies
run: |
brew install boost ninja llvm lld webp libpng libgit2 googletest jsoncpp openssl fmt
git submodule update --init
sed -i '' '/^#define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS/d' "$(brew --prefix llvm)"/include/c++/v1/__config_site
- name: Compile with Apple GCC
env:
CC: /usr/local/opt/llvm/bin/clang
CXX: /usr/local/opt/llvm/bin/clang++
run: |
mkdir build
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DTGBOT_ENABLE_TESTING=ON .
cmake --build build -j4
- name: Run Tests
run: |
cd build
ctest --output-on-failure --timeout 30