Skip to content

Commit d5f73b5

Browse files
committed
add usage of run-cmake action for CI
1 parent 22ffb35 commit d5f73b5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI-build-and-test
2+
3+
on:
4+
push:
5+
# To run on all branches, but not 'master'.
6+
branches:
7+
- '*'
8+
- '!master'
9+
pull_request:
10+
jobs:
11+
build:
12+
name: CI-${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: build and test
22+
uses: lukka/run-cmake@v0
23+
with:
24+
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
25+
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
26+
buildDirectory: '${{ runner.workspace }}/build'
27+
cmakeAppendedArgs: '-G "Ninja"'
28+
buildWithCMakeArgs: "--target check -- -j"
29+
- name: archive build output
30+
uses: actions/upload-artifact@v1
31+
with:
32+
name: packages
33+
path: ${{ runner.workspace }}/build/source/

0 commit comments

Comments
 (0)