1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 13:39:10 +00:00
conky/.github/workflows/build-and-test-linux.yaml

117 lines
3.7 KiB
YAML
Raw Normal View History

2021-03-01 18:03:35 +00:00
name: Build and test on Linux
on: [push, pull_request]
2021-03-01 18:03:35 +00:00
jobs:
build:
strategy:
matrix:
os:
- ubuntu-20.04
2022-09-10 15:19:52 +00:00
- ubuntu-22.04
2021-03-01 18:03:35 +00:00
x11: [ON, OFF]
compiler:
- clang
- gcc
compiler_version:
- 10
2021-04-18 15:51:43 +00:00
- 11
2022-09-10 15:19:52 +00:00
- 12
- 13
- 14
- 15
2021-03-01 18:03:35 +00:00
exclude:
2021-04-18 15:51:43 +00:00
- compiler: gcc
2022-09-10 15:19:52 +00:00
compiler_version: 13
- compiler: gcc
compiler_version: 14
- compiler: gcc
compiler_version: 15
2021-04-18 15:55:30 +00:00
- compiler: clang
2021-03-01 18:03:35 +00:00
compiler_version: 10
2022-09-10 15:19:52 +00:00
- compiler: clang
2021-04-18 15:53:59 +00:00
compiler_version: 11
2022-09-10 15:19:52 +00:00
- compiler: clang
compiler_version: 12
2021-03-01 18:03:35 +00:00
runs-on: ${{ matrix.os }}
steps:
2021-04-18 15:46:00 +00:00
- run: sudo apt-get -qq update
2021-03-01 18:03:35 +00:00
- name: Install dependencies
run: |
sudo apt-get install -yqq --no-install-recommends \
audacious-dev \
cmake \
docbook2x \
gawk \
lcov \
libaudclient-dev \
libc++-${{ matrix.compiler_version }}-dev \
libc++abi-${{ matrix.compiler_version }}-dev \
libcairo2-dev \
libcurl4-gnutls-dev \
libcurl4-gnutls-dev \
libglib2.0-dev \
libical-dev \
libimlib2-dev \
libircclient-dev \
2021-03-02 18:27:59 +00:00
libiw-dev \
2021-03-01 18:03:35 +00:00
liblua5.3-dev \
libmicrohttpd-dev \
libmysqlclient-dev \
libpulse-dev \
librsvg2-dev \
libsystemd-dev \
libx11-dev \
libxdamage-dev \
libxext-dev \
libxft-dev \
libxinerama-dev \
libxml2-dev \
libxmmsclient-dev \
libxnvctrl-dev \
ncurses-dev
- name: Checkout
uses: actions/checkout@v2
- name: Configure with CMake
run: |
[[ "${{ matrix.compiler }}" == "clang"* ]] && CC=clang-${{ matrix.compiler_version }}
[[ "${{ matrix.compiler }}" == "clang"* ]] && CXX=clang++-${{ matrix.compiler_version }}
[[ "${{ matrix.compiler }}" == "gcc"* ]] && CC=gcc-${{ matrix.compiler_version }}
[[ "${{ matrix.compiler }}" == "gcc"* ]] && CXX=g++-${{ matrix.compiler_version }}
# Enable librsvg by default, disable for older versions of Ubuntu
# because we need librsvg>=2.46
RSVG_ENABLED=ON
[[ "${{ matrix.os }}" == "ubuntu-18.04"* ]] && RSVG_ENABLED=OFF
mkdir build
cd build
cmake .. \
-DBUILD_AUDACIOUS=ON \
-DBUILD_HTTP=ON \
2021-03-02 18:27:59 +00:00
-DBUILD_ICAL=ON \
2021-03-01 18:03:35 +00:00
-DBUILD_ICONV=ON \
2021-03-02 18:27:59 +00:00
-DBUILD_IRC=ON \
-DBUILD_IRC=ON \
2021-03-01 18:03:35 +00:00
-DBUILD_JOURNAL=ON \
2021-03-02 18:27:59 +00:00
-DBUILD_LUA_CAIRO=ON \
-DBUILD_LUA_IMLIB2=ON \
-DBUILD_LUA_RSVG=${RSVG_ENABLED} \
-DBUILD_MYSQL=ON \
-DBUILD_NVIDIA=ON \
-DBUILD_PULSEAUDIO=ON \
2021-03-01 18:03:35 +00:00
-DBUILD_RSS=ON \
2021-03-02 18:27:59 +00:00
-DBUILD_TESTS=ON \
-DBUILD_WLAN=ON \
-DBUILD_X11=${{ matrix.x11 }} \
-DBUILD_XMMS2=ON \
-DCMAKE_C_COMPILER=$CC \
-DCMAKE_CXX_COMPILER=$CXX \
-DMAINTAINER_MODE=ON
2021-03-01 18:03:35 +00:00
- name: Compile
working-directory: build
run: make -j5
- name: Test
working-directory: build
run: make test