forked from libical/libical
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build tests | ||
on: | ||
- push | ||
env: | ||
COMMON_ARGS: -DLIBICAL_BUILD_TESTING=True -DENABLE_GTK_DOC=True -DICAL_GLIB=True | ||
jobs: | ||
# build-windows: | ||
# strategy: | ||
# matrix: | ||
# configuration: | ||
# - Debug | ||
# - Release | ||
# runs-on: windows-2019 | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - run: call scripts\set_compiler_env.bat | ||
# - 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 }} $env:COMMON_ARGS -DGOBJECT_INTROSPECTION=True -DICAL_GLIB_VAPI=True | ||
# - name: Build project | ||
# run: cmake -B build --build . | ||
# - name: Test project | ||
# run: cd build && ctest --test-dir . | ||
|
||
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 | ||
- 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 }} $COMMON_ARGS -DGOBJECT_INTROSPECTION=True -DICAL_GLIB_VAPI=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-12 | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Install dependencies | ||
# - run: brew install pkg-config ninja gtk-doc glib libxml2 icu4c berkeley-db | ||
# - 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=True -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} $COMMON_ARGS -DGOBJECT_INTROSPECTION=False -DICAL_GLIB_VAPI=False | ||
# - name: Build project | ||
# run: cmake --build build | ||
# - name: Test project | ||
# run: cd build && ctest --test-dir . | ||
|