b1923a490c
* split pipeline * add dedicated doc build step * parallel builds * fix permissions * rm push trigger * mv gcc ubuntu * add windows build * always build the docs * doc alignment * checkout recursive * depend on builds for documentation * set standard via cmake * update libCZI to main * pretty_function win32 * version history update * disable windows release build missing dependencies for doc generation trigger ci on push to main adapt doc-gen job require only doxygen
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: build-windows
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
configuration: [Debug]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Cacke vcpkg
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: 'C:/vcpkg/installed'
|
|
key: vcpkg-x64-windows-${{ matrix.configuration }}
|
|
restore-keys: |
|
|
vcpkg-x64-windows-${{ matrix.configuration }}
|
|
|
|
- name: Install OpenCV vcpkg
|
|
run: |
|
|
vcpkg install opencv[core]:x64-windows-static
|
|
|
|
- name: Set PATH for vcpkg
|
|
run: echo "PATH=C:/vcpkg/installed/x64-windows/bin:${{ env.PATH }}" >> $GITHUB_ENV
|
|
|
|
- name: Configure Windows
|
|
run: cmake -B ${{github.workspace}}/build/msvc-${{ matrix.configuration }} -S . -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
|
|
|
|
- name: Build Windows
|
|
run: cmake --build ${{github.workspace}}/build/msvc-${{ matrix.configuration }} --config ${{ matrix.configuration }} -j 10
|
|
|
|
- name: Test Windows
|
|
run: |
|
|
cd ${{github.workspace}}/build/msvc-${{ matrix.configuration }}
|
|
ctest -C ${{ matrix.configuration }}
|