File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 99env :
1010 BUILD_TYPE : Release
1111
12+ # TODO: Use matrix instead
1213jobs :
1314 build-gcc :
1415 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ name : build-windows
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ env :
10+ BUILD_TYPE : Release
11+
12+ # TODO: Use matrix instead
13+ # TODO: Add clang-cl build
14+ jobs :
15+ build-cl :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ - uses : ilammy/msvc-dev-cmd@v1
21+ - uses : Bacondish2023/setup-googletest@v1
22+ with :
23+ tag : v1.14.0
24+
25+ - name : Configure CMake
26+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -GNinja
27+
28+ - name : Build with GCC
29+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
30+
31+ - name : Test
32+ working-directory : ${{github.workspace}}/build
33+ run : ctest -C ${{env.BUILD_TYPE}}
You can’t perform that action at this time.
0 commit comments