refactor: update CI workflows and Dockerfile for improved compatibili… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Telegram Bot API Server on macOS | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Homebrew | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install gperf cmake openssl | |
- name: Install dependencies | |
run: | | |
brew install gperf cmake openssl | |
- name: Clone Telegram Bot API repository | |
run: git clone --recursive https://github.com/tdlib/telegram-bot-api.git | |
- name: Build Telegram Bot API | |
run: | | |
cd telegram-bot-api | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr/local .. | |
cmake --build . --target install | |
- name: Verify build | |
run: | | |
ls -l /usr/local/bin/telegram-bot-api* |