-
Notifications
You must be signed in to change notification settings - Fork 267
53 lines (40 loc) · 1.27 KB
/
windows.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
# Customize the CMake build type here (Release, Debug, etc.)
BUILD_TYPE: Release
jobs:
build_with_cmake:
runs-on: windows-2019
strategy:
matrix:
mode: [ Release ]
arch: [ x86 ]
env:
CXX: cl.exe
CC: cl.exe
steps:
- uses: actions/checkout@v2
- name: Generate Project
run: cmake -B Build/${{ matrix.mode }} -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DRFK_DEV=1 -G "Visual Studio 16 2019" -A x64
- name: Build async_simple
run: cmake --build Build/${{ matrix.mode }} --config ${{ matrix.mode }} --verbose
- name: Test
working-directory: ${{github.workspace}}/Build/${{ matrix.mode }}
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{ matrix.mode }} --output-on-failure
build_with_bazel:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Build
working-directory: ${{github.workspace}}
run: bazel build ...
- name: Test
working-directory: ${{github.workspace}}
run: bazel test --test_output=errors ...