Debian Codegraph @

.github/workflows/ismrmrd_windows_build.yml

raw
1 name: WindowsCMake
2
3 on:
4 push:
5 branches: [master]
6 tags: ["v*.*.*"]
7 pull_request:
8 branches: [master]
9 workflow_dispatch:
10
11 jobs:
12 windows-build:
13
14 runs-on: windows-latest
15
16 steps:
17 - uses: actions/checkout@v6
18
19 - name: Create Build Environment
20 shell: pwsh
21 run: cmake -E make_directory ${{github.workspace}}/build
22
23 - name: Configure CMake and install dependencies
24 shell: pwsh
25 working-directory: ${{github.workspace}}/build
26 run: |-
27 cmake "$env:GITHUB_WORKSPACE" -D CMAKE_BUILD_TYPE=Release `
28 -D CMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake `
29 -D VCPKG_TARGET_TRIPLET=x64-windows-static `
30 -D BUILD_STATIC=ON `
31 -D USE_HDF5_DATASET_SUPPORT=OFF
32
33 - name: Build
34 working-directory: ${{github.workspace}}/build
35 shell: pwsh
36 run: cmake --build . --config Release --target all_build --target install
37
38 - name: Test
39 working-directory: ${{github.workspace}}/build
40 shell: cmd
41 run: |
42 xcopy /Y .\tests\Release\* .\Release\
43 xcopy /Y .\utilities\Release\* .\utilities\
44 cd .\Release\
45 .\test_ismrmrd.exe