File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : test cmake options
2+
3+ on :
4+ push :
5+ branches : [ '**' ]
6+ pull_request :
7+ branches : [ '**' ]
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ci-gcc10
13+ if : ${{ github.repository != 'opcm/pcm' }}
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Preparation
18+ run : |
19+ cd ${{ github.workspace }}/src
20+ git clone https://github.com/simdjson/simdjson.git
21+ cd ..
22+
23+ - name : CMake default install
24+ run : |
25+ cmake --version
26+ rm -rf ${{ github.workspace }}/build
27+ cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build
28+ cd ${{ github.workspace }}/build
29+ export VERBOSE=1
30+ make install -j$(nproc)
31+
32+ - name : CMake Release install
33+ run : |
34+ cmake --version
35+ rm -rf ${{ github.workspace }}/build
36+ cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=Release
37+ cd ${{ github.workspace }}/build
38+ export VERBOSE=1
39+ make install -j$(nproc)
40+
41+ - name : CMake Debug install
42+ run : |
43+ cmake --version
44+ rm -rf ${{ github.workspace }}/build
45+ cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=Debug
46+ cd ${{ github.workspace }}/build
47+ export VERBOSE=1
48+ make install -j$(nproc)
49+
50+ - name : CMake RelWithDebInfo install
51+ run : |
52+ cmake --version
53+ rm -rf ${{ github.workspace }}/build
54+ cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=RelWithDebInfo
55+ cd ${{ github.workspace }}/build
56+ export VERBOSE=1
57+ make install -j$(nproc)
58+
59+ - name : Diagnostic
60+ run : date
You can’t perform that action at this time.
0 commit comments