-
Notifications
You must be signed in to change notification settings - Fork 332
31 lines (29 loc) · 780 Bytes
/
Copy pathccpp.yml
File metadata and controls
31 lines (29 loc) · 780 Bytes
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
name: DesignPatternCI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# 矩阵配置
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- name: windows-build
if: matrix.os == 'windows-latest'
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
mkdir build
cd build
cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=release
nmake
ctest -C Release -V -j
- name: unix-build
if: matrix.os != 'windows-latest'
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=release
make -j4
ctest -j 2 -V