CMake: Keep git hooks as optional #38
Workflow file for this run
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
name: ci-opensuse | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build-opensuse-15: | |
name: opensuse-15-g++ | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gplusplus_version: [10] | |
libcoro_feature_networking: [ {enabled: ON, tls: ON} ] | |
libcoro_feature_platform: [ON] | |
container: | |
image: opensuse/leap:15.2 | |
steps: | |
- name: zypper | |
run: | | |
zypper install -y \ | |
cmake \ | |
git \ | |
ninja \ | |
gcc${{ matrix.gplusplus_version }} \ | |
gcc${{ matrix.gplusplus_version }}-c++ \ | |
openssl \ | |
openssl-devel | |
# Cannot run higher version of checkout, node isn't backwards compatible | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build | |
run: | | |
mkdir Release | |
cd Release | |
cmake \ | |
-GNinja \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_C_COMPILER=gcc-${{ matrix.gplusplus_version }} \ | |
-DCMAKE_CXX_COMPILER=g++-${{ matrix.gplusplus_version }} \ | |
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \ | |
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \ | |
-DLIBCORO_FEATURE_PLATFORM=${{ matrix.libcoro_feature_platform }} \ | |
.. | |
cmake --build . --config Release | |
- name: Test | |
run: | | |
cd Release | |
ctest --build-config Release -VV | |