TgBot++: libPNG: Fix memory leak designated by ASAN #731
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 TgBot++ (Linux) | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- cc: clang | |
real_cc: clang-18 | |
real_cxx: clang++-18 | |
flags: -DRTCOMMAND_LOADER=ON | |
str: (RTCL) | |
- cc: gcc | |
real_cc: gcc | |
real_cxx: g++ | |
flags: -DENABLE_RUST_SUPPORT=ON | |
str: (Rust) | |
- cc: clang | |
real_cc: clang-18 | |
real_cxx: clang++-18 | |
flags: -DRTCOMMAND_LOADER=OFF | |
str: '' | |
name: 🚧 ${{ matrix.cc }} ${{ matrix.str }} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Set up dependencies | |
run: | | |
bash ./resources/scripts/setup_dependencies_apt.sh | |
- name: Install latest clang | |
if: matrix.cc == 'clang' | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 | |
- name: '🚧 Build TgBot++' | |
env: | |
CC: ${{ matrix.real_cc }} | |
CXX: ${{ matrix.real_cxx }} | |
run: | | |
mkdir build | |
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release . | |
cmake --build build -j4 | |
- name: Run Tests | |
env: | |
DATABASE_BACKEND: sqlite:new.db | |
run: | | |
cd build | |
./bin/TgBot++_DatabaseCtl set_owner_id 12345 | |
./bin/TgBot++_test |