Skip to content

TgBot++: socket: DataHandler: Correctly log when type is invalid #651

TgBot++: socket: DataHandler: Correctly log when type is invalid

TgBot++: socket: DataHandler: Correctly log when type is invalid #651

Workflow file for this run

name: Build TgBot++ (Windows)
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
sys: [mingw64, ucrt64] # clang64
text: ['', 'unsupported']
name: "🚧 ${{ matrix.sys }} (AF_UNIX ${{ matrix.text}})"
defaults:
run:
shell: msys2 {0}
steps:
- name: '🧰 Checkout'
uses: actions/[email protected]
with:
fetch-depth: 0
- name: 'Setup MSYS2'
uses: msys2/[email protected]
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
boost:p
pcre:p
- name: 'Setup submodule'
run: |
git submodule update --init
cp src/third-party/libsqlite3/upstream/sqlite3.h src/third-party/libsqlite3/libsqlite3/libsqlite3/sqlite3.h
- name: 'Break build of test_af_unix.c'
if: matrix.text != ''
run: |
echo ${{matrix.text}} >> tests/test_af_unix.c
- name: '🚧 Build TgBot++'
run: |
mkdir build
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release .
cmake --build build -j4
- name: Run Tests
run: |
cd build
./bin/TgBot++_test.exe