add win and maxos test ci

This commit is contained in:
zhengjian
2024-01-21 20:52:24 +08:00
parent ecea995eb6
commit ac56b6bef9
5 changed files with 162 additions and 1 deletions
+46
View File
@@ -0,0 +1,46 @@
name: Ubuntu 22.04 (clang)
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
ASAN_OPTIONS: alloc_dealloc_mismatch=0
jobs:
build_by_clang:
strategy:
matrix:
mode: [Debug, Release]
libcxx: [OFF]
ssl: [OFF]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get install openssl
sudo apt-get install libssl-dev
- name: Install newer Clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 11
- name: Configure CMake
run: CXX=clang++-11 CC=clang-11 cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.mode}} -DCINATRA_ENABLE_SSL=${{matrix.ssl}} -DBUILD_WITH_LIBCXX=${{matrix.libcxx}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.mode}} -j `nproc` -V