mirror of
https://github.com/drogonframework/drogon.git
synced 2025-07-27 00:00:43 -04:00
Compare commits
3 Commits
f4443dce44
...
1fd5c7ea5e
Author | SHA1 | Date | |
---|---|---|---|
|
1fd5c7ea5e | ||
|
2a0da80d5f | ||
|
01ad18d2d5 |
66
.github/workflows/cmake.yml
vendored
66
.github/workflows/cmake.yml
vendored
@ -66,8 +66,11 @@ jobs:
|
|||||||
run: ./test.sh -w
|
run: ./test.sh -w
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
name: macos/clang
|
runs-on: macos-${{ matrix.osver }}
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
osver: [12, 13]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Drogon source code
|
- name: Checkout Drogon source code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -76,8 +79,8 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# Already installed: brotli, zlib, postgresql@14, lz4, sqlite3
|
# Already installed: brotli, zlib, lz4, sqlite3
|
||||||
run: brew install ninja jsoncpp mariadb hiredis redis spdlog
|
run: brew install ninja jsoncpp mariadb hiredis redis spdlog postgresql@14
|
||||||
|
|
||||||
- name: Create Build Environment & Configure Cmake
|
- name: Create Build Environment & Configure Cmake
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
# Some projects don't allow in-source building, so create a separate build directory
|
||||||
@ -114,18 +117,44 @@ jobs:
|
|||||||
run: ./test.sh -t
|
run: ./test.sh -t
|
||||||
|
|
||||||
ubuntu:
|
ubuntu:
|
||||||
name: ${{ matrix.buildname }}
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
link: [SHARED, STATIC]
|
||||||
|
compiler:
|
||||||
|
- cxx: g++
|
||||||
|
ver: 9
|
||||||
|
- cxx: g++
|
||||||
|
ver: 10
|
||||||
|
- cxx: g++
|
||||||
|
ver: 11
|
||||||
|
- cxx: g++
|
||||||
|
ver: 12
|
||||||
|
- cxx: g++
|
||||||
|
ver: 13
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 11
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 12
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 13
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 14
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 15
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 16
|
||||||
|
- cxx: clang++
|
||||||
|
ver: 17
|
||||||
include:
|
include:
|
||||||
- buildname: "ubuntu-22.04/gcc"
|
- link: STATIC
|
||||||
link: SHARED
|
compiler:
|
||||||
- buildname: "ubuntu-22.04/gcc"
|
cxx: g++
|
||||||
link: STATIC
|
ver: 13
|
||||||
- buildname: "ubuntu-22.04/coroutines"
|
feature: coroutines
|
||||||
link: STATIC
|
env:
|
||||||
|
CXX: ${{ matrix.compiler.cxx }}-${{ matrix.compiler.ver }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Drogon source code
|
- name: Checkout Drogon source code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -147,6 +176,17 @@ jobs:
|
|||||||
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common postgresql-client-common
|
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common postgresql-client-common
|
||||||
sudo apt-get -y install postgresql-all
|
sudo apt-get -y install postgresql-all
|
||||||
|
|
||||||
|
- name: Install Clang
|
||||||
|
if: startsWith(matrix.compiler.cxx, 'clang') && matrix.compiler.ver < 13
|
||||||
|
run: sudo apt-get install clang-${{ matrix.compiler.ver }}
|
||||||
|
|
||||||
|
- name: Install Clang
|
||||||
|
if: startsWith(matrix.compiler.cxx, 'clang') && matrix.compiler.ver >= 13
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod +x ./llvm.sh
|
||||||
|
sudo ./llvm.sh ${{ matrix.compiler.ver }}
|
||||||
|
|
||||||
- name: Export `shared`
|
- name: Export `shared`
|
||||||
run: |
|
run: |
|
||||||
[[ ${{ matrix.link }} == "SHARED" ]] && shared="ON" || shared="OFF"
|
[[ ${{ matrix.link }} == "SHARED" ]] && shared="ON" || shared="OFF"
|
||||||
@ -155,7 +195,7 @@ jobs:
|
|||||||
- name: Create Build Environment & Configure Cmake
|
- name: Create Build Environment & Configure Cmake
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
# Some projects don't allow in-source building, so create a separate build directory
|
||||||
# We'll use this as our working directory for all subsequent commands
|
# We'll use this as our working directory for all subsequent commands
|
||||||
if: matrix.buildname != 'ubuntu-22.04/coroutines'
|
if: matrix.compiler.feature != 'coroutines'
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -G Ninja \
|
cmake -B build -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
@ -165,7 +205,7 @@ jobs:
|
|||||||
- name: Create Build Environment & Configure Cmake (coroutines)
|
- name: Create Build Environment & Configure Cmake (coroutines)
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
# Some projects don't allow in-source building, so create a separate build directory
|
||||||
# We'll use this as our working directory for all subsequent commands
|
# We'll use this as our working directory for all subsequent commands
|
||||||
if: matrix.buildname == 'ubuntu-22.04/coroutines'
|
if: matrix.compiler.feature == 'coroutines'
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -G Ninja \
|
cmake -B build -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
|
@ -79,6 +79,7 @@ DROGON_TEST(ListenNotifyTest)
|
|||||||
dbListener->unlisten(chan);
|
dbListener->unlisten(chan);
|
||||||
}
|
}
|
||||||
CHECK(numNotifications == 15);
|
CHECK(numNotifications == 15);
|
||||||
|
std::this_thread::sleep_for(1s);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user