Skip to content

clientapp: Android: Target SDK 21 (L) #1156

clientapp: Android: Target SDK 21 (L)

clientapp: Android: Target SDK 21 (L) #1156

Workflow file for this run

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