File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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/
You can’t perform that action at this time.
0 commit comments