Files
ortools-clone/.github/workflows/linux_cpp.yml
2020-09-30 12:33:19 +02:00

21 lines
633 B
YAML

name: C++ Linux CI
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
cmake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON
- name: Build
run: cmake --build build --config Release --target all -v
- name: Test
run: CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config Release --target test -v
- name: Install
run: cmake --build build --config Release --target install -v -- DESTDIR=install