Skip to content

Commit

Permalink
Build with Qt support in the ubuntu-20.04 CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Aug 8, 2023
1 parent f01ebf6 commit 43cd955
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/log4cxx-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,30 @@ jobs:
os: ubuntu-20.04
cxx: g++
cc: gcc
fmt: OFF
qt: ON
odbc: OFF
- name: ubuntu20-clang
os: ubuntu-20.04
cxx: clang++
cc: clang
fmt: ON
qt: OFF
odbc: ON
- name: ubuntu22-gcc
os: ubuntu-22.04
cxx: g++
cc: gcc
fmt: OFF
qt: OFF
odbc: OFF
- name: ubuntu22-clang
os: ubuntu-22.04
cxx: clang++
cc: clang
fmt: ON
qt: OFF
odbc: OFF

steps:
- uses: actions/checkout@v3
Expand All @@ -51,14 +63,17 @@ jobs:
- name: 'Configure Dependencies'
run: |
sudo apt-get update
sudo apt-get install -y libapr1-dev libaprutil1-dev libfmt-dev unixodbc-dev
sudo apt-get install -y libapr1-dev libaprutil1-dev
if [ ${{ matrix.fmt }} == ON ]; then sudo apt-get install -y libfmt-dev; fi
if [ ${{ matrix.odbc }} == ON ]; then sudo apt-get install -y unixodbc-dev; fi
if [ ${{ matrix.qt }} == ON ]; then sudo apt-get install -y qt5base-dev; fi
- name: 'run cmake - posix'
run: |
cd main
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DCMAKE_C_COMPILER=${{ matrix.cc }} -DLOG4CXX_ENABLE_ODBC=ON ..
cmake -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DCMAKE_C_COMPILER=${{ matrix.cc }} -DLOG4CXX_ENABLE_ODBC=${{ matrix.odbc }} -DLOG4CXX_QT_SUPPORT=${{ matrix.qt }} ..
cmake --build .
- name: run unit tests
Expand Down

0 comments on commit 43cd955

Please sign in to comment.