forked from libical/libical
-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (72 loc) · 2.66 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build tests
on:
- push
- pull_request
env:
COMMON_ARGS:
jobs:
build-windows:
strategy:
matrix:
configuration:
- Debug
- Release
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
with:
vsversion: 2019
- name: Configure project
run: |
mkdir build
cmake -B build --warn-uninitialized -Werror=dev -G Ninja -DLIBICAL_DEVMODE_MEMORY_CONSISTENCY=True -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DLIBICAL_BUILD_TESTING=True -DENABLE_GTK_DOC=False -DICAL_GLIB=False -DGOBJECT_INTROSPECTION=False -DICAL_GLIB_VAPI=False
shell: cmd
- name: Build project
run: cmake --build build
shell: cmd
- name: Test project
run: cd build && ctest -VV
shell: cmd
build-ubuntu:
strategy:
matrix:
configuration:
- Debug
- Release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get -y install gtk-doc-tools xml-core libdb-dev gobject-introspection libgirepository1.0-dev valac cmake ninja-build
- name: Configure project
run: |
mkdir build
cmake -B build --warn-uninitialized -Werror=dev -G Ninja -DLIBICAL_DEVMODE_MEMORY_CONSISTENCY=False -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DLIBICAL_BUILD_TESTING=True -DENABLE_GTK_DOC=True -DICAL_GLIB=True -DGOBJECT_INTROSPECTION=True -DICAL_GLIB_VAPI=True -DLIBICAL_BUILD_TESTING_BIGFUZZ=True
- name: Build project
run: cmake --build build
- name: Test project
run: cd build && ctest --test-dir .
build-macos:
strategy:
matrix:
configuration:
- Debug
- Release
runs-on: macos-13
env:
XML_CATALOG_FILES: /usr/local/etc/xml/catalog
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: brew install pkg-config ninja gtk-doc glib libxml2 icu4c berkeley-db docbook docbook-xsl
- name: Configure project
run: |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
mkdir build
cmake -B build --warn-uninitialized -Werror=dev -G Ninja -DLIBICAL_DEVMODE_MEMORY_CONSISTENCY=False -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DLIBICAL_BUILD_TESTING=True -DENABLE_GTK_DOC=True -DICAL_GLIB=True -DGOBJECT_INTROSPECTION=False -DICAL_GLIB_VAPI=False -DLIBICAL_BUILD_TESTING_BIGFUZZ=True
- name: Build project
run: cmake --build build
- name: Test project
run: cd build && ctest --test-dir .