this repo has no description
1name: CMake
2
3on: [push,pull_request]
4
5env:
6 BUILD_TYPE: Release
7
8jobs:
9 build:
10 strategy:
11 matrix:
12 os: [ubuntu-latest, windows-latest, macos-latest]
13
14 runs-on: ${{ matrix.os }}
15
16 steps:
17 - uses: actions/checkout@v2
18
19 - name: Create Build Environment
20 run: cmake -E make_directory ${{runner.workspace}}/build
21
22 - name: Configure CMake
23 shell: bash
24 working-directory: ${{runner.workspace}}/build
25 # Note the current convention is to use the -S and -B options here to specify source
26 # and build directories, but this is only available with CMake 3.13 and higher.
27 # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
28 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX="${{runner.workspace}}/install"
29
30
31 - name: Build
32 working-directory: ${{runner.workspace}}/build
33 shell: bash
34 run: cmake --build . --config $BUILD_TYPE --target install
35
36 # TODO: Run Chuffed tests
37
38 - uses: actions/upload-artifact@v2
39 with:
40 name: ${{ matrix.os }}
41 path: ${{runner.workspace}}/install/