-
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·40 lines (32 loc) · 1.22 KB
/
cmake-multi-platform.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
# name: CMake Build and Test
# on:
# push:
# branches:
# - development
# pull_request:
# branches:
# - development
# jobs:
# build_and_test:
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest]
# build_type: [Release]
# c_compiler: [gcc, clang, cl]
# cpp_compiler: [g++, clang++, cl]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout Code
# uses: actions/checkout@v2
# - name: Set Reusable Variables
# id: vars
# run: echo "::set-output name=build-output-dir::${{ github.workspace }}/build"
# - name: Configure CMake
# run: |
# mkdir -p ${{ steps.vars.outputs.build-output-dir }}
# cd ${{ steps.vars.outputs.build-output-dir }}
# cmake -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ github.workspace }}
# - name: Build Project
# run: cmake --build ${{ steps.vars.outputs.build-output-dir }} --config ${{ matrix.build_type }}
# - name: Run Tests
# run: ctest --test-dir ${{ steps.vars.outputs.build-output-dir }} --build-config ${{ matrix.build_type }}