Debian Codegraph @

.github/workflows/windows.yml

raw symbols SCIP
1 name: win64
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9 release:
10
11 jobs:
12 build:
13 name: ${{ matrix.config.name }}
14 runs-on: ${{ matrix.config.os }}
15 strategy:
16 fail-fast: false
17 matrix:
18 config:
19 - {
20 name: "Windows 2022 MSVC",
21 os: windows-2022,
22 build_type: "Debug",
23 environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
24 generators: "Visual Studio 17 2022"
25 }
26
27
28 steps:
29 - uses: actions/checkout@v3
30 with:
31 fetch-depth: 25
32
33 - name: Print env
34 run: |
35 echo github.ref: ${{github.ref}}
36 echo github.event.action: ${{github.event.action}}
37 echo github.event_name: ${{github.event_name}}
38 echo runner.os: ${{runner.os}}
39
40 - name: Install libraries with vcpkg
41 run: |
42 vcpkg --triplet x64-windows install eigen3
43
44 - name: Eigen Introspection
45 run: |
46 type C:/vcpkg/packages/eigen3_x64-windows/debug/lib/pkgconfig/eigen3.pc
47
48 - name: Configure CMake
49 run: |
50 cmake --version
51 cmake -B ${{github.workspace}}/build -G "${{matrix.config.generators}}" -A x64 -DBUILD_UNITTESTS=ON -DG2O_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
52
53 - name: Build Introspection
54 run: |
55 echo "g2o config.h"
56 type ${{github.workspace}}/build/g2o/config.h
57
58 - name: Build
59 run: cmake --build ${{github.workspace}}/build --config ${{matrix.config.build_type}} -j 2
60
61 - name: Test
62 run: |
63 cd ${{github.workspace}}/build
64 $Env:PATH += ";${{github.workspace}}\bin\${{matrix.config.build_type}}"
65 $Env:PATH += ";${{github.workspace}}\lib\${{matrix.config.build_type}}"
66 $Env:PATH += ";${{github.workspace}}\build\bin\${{matrix.config.build_type}}"
67 $Env:PATH += ";${{github.workspace}}\build\lib\${{matrix.config.build_type}}"
68 ctest -C ${{matrix.config.build_type}} --extra-verbose --output-on-failure