|
| 1 | +# Copyright (c) 2020 Mikael Simberg |
| 2 | +# Copyright (c) 2024-2026 The STE||AR Group |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: BSL-1.0 |
| 5 | +# Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | +# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | + |
| 8 | +name: Windows CI (Debug, VS2026 toolset, C++20 Modules) |
| 9 | + |
| 10 | +on: [pull_request] |
| 11 | + |
| 12 | +concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + runs-on: windows-2025-vs2026 |
| 19 | + |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v6 |
| 22 | + - uses: lukka/get-cmake@v4.3.2 |
| 23 | + |
| 24 | + - name: Install dependencies |
| 25 | + run: | |
| 26 | + md C:\projects |
| 27 | + $client = new-object System.Net.WebClient |
| 28 | + $client.DownloadFile("https://rostam.cct.lsu.edu/download/builder/vcpkg-export-hpx-dependencies-2026.7z","C:\projects\vcpkg-export-hpx-dependencies.7z") |
| 29 | + 7z x C:\projects\vcpkg-export-hpx-dependencies.7z -y -oC:\projects\vcpkg |
| 30 | + - name: Configure |
| 31 | + shell: bash |
| 32 | + run: | |
| 33 | + cmake . -Bbuild -G'Visual Studio 18 2026' \ |
| 34 | + -DCMAKE_BUILD_TYPE=Debug \ |
| 35 | + -DCMAKE_TOOLCHAIN_FILE='C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake' \ |
| 36 | + -DHPX_WITH_FETCH_ASIO=ON \ |
| 37 | + -DHPX_WITH_ASIO_TAG=asio-1-38-0 \ |
| 38 | + -DHPX_WITH_EXAMPLES=OFF \ |
| 39 | + -DHPX_WITH_TESTS=OFF \ |
| 40 | + -DHPX_WITH_TESTS_EXAMPLES=OFF \ |
| 41 | + -DHPX_WITH_DEPRECATION_WARNINGS=OFF \ |
| 42 | + -DHPX_WITH_TESTS_MAX_THREADS_PER_LOCALITY=2 \ |
| 43 | + -DHPX_COROUTINES_WITH_SWAP_CONTEXT_EMULATION=ON \ |
| 44 | + -DHPX_WITH_VERIFY_LOCKS=ON \ |
| 45 | + -DHPX_WITH_VERIFY_LOCKS_BACKTRACE=ON \ |
| 46 | + -DHPX_WITH_CHECK_MODULE_DEPENDENCIES=ON \ |
| 47 | + -DHPX_WITH_CXX_MODULES=ON \ |
| 48 | + -DHPX_WITH_DATAPAR=ON \ |
| 49 | + -DHPX_WITH_DATAPAR_BACKEND=EMULATE |
| 50 | + - name: Build |
| 51 | + shell: bash |
| 52 | + run: | |
| 53 | + cmake --build build --config Debug --target ALL_BUILD \ |
| 54 | + -- -maxcpucount:2 -verbosity:minimal -nologo |
| 55 | + - name: Install |
| 56 | + shell: bash |
| 57 | + run: | |
| 58 | + cmake --install build --config Debug |
| 59 | +# - name: Test |
| 60 | +# run: | |
| 61 | +# $exclude_regex = & "$env:GITHUB_WORKSPACE/.github/ci-scripts/generate_ctest_exclude_regex.ps1" ` |
| 62 | +# "$env:GITHUB_WORKSPACE/.github/workflows/tests.examples.targets" |
| 63 | +# cd build |
| 64 | +# ctest ` |
| 65 | +# --output-on-failure ` |
| 66 | +# --build-config Debug ` |
| 67 | +# --tests-regex tests.examples ` |
| 68 | +# --exclude-regex $exclude_regex |
0 commit comments