Integration of perftest CI with standardised benchmarks #1632
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2020 Mikael Simberg | |
# | |
# SPDX-License-Identifier: BSL-1.0 | |
# Distributed under the Boost Software License, Version 1.0. (See accompanying | |
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
name: Windows CI (Release, VS2022 toolset) | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.22.x' | |
- name: Install dependencies | |
run: | | |
md C:\projects | |
$client = new-object System.Net.WebClient | |
$client.DownloadFile("https://rostam.cct.lsu.edu/download/builder/vcpkg-export-hpx-dependencies-2022.7z","C:\projects\vcpkg-export-hpx-dependencies.7z") | |
7z x C:\projects\vcpkg-export-hpx-dependencies.7z -y -oC:\projects\vcpkg | |
- name: Configure | |
shell: bash | |
run: | | |
cmake . -Bbuild -G'Visual Studio 17 2022' \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_TOOLCHAIN_FILE='C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake' \ | |
-DHPX_WITH_FETCH_ASIO=ON \ | |
-DHPX_WITH_EXAMPLES=ON \ | |
-DHPX_WITH_TESTS=ON \ | |
-DHPX_WITH_TESTS_UNIT=ON \ | |
-DHPX_WITH_DEPRECATION_WARNINGS=OFF \ | |
-DHPX_WITH_TESTS_MAX_THREADS_PER_LOCALITY=2 \ | |
-DHPX_WITH_CHECK_MODULE_DEPENDENCIES=On | |
- name: Build | |
shell: bash | |
run: | | |
cmake --build build --config Release \ | |
--target ALL_BUILD \ | |
-- -maxcpucount:2 -verbosity:minimal -nologo | |
- name: Install | |
shell: bash | |
run: | | |
cmake --install build --config Release | |
- name: Test | |
run: | | |
Set-Alias -Name grep -Value "C:\Program Files\Git\usr\bin\grep.exe" | |
Set-Alias -Name sed -Value "C:\Program Files\Git\usr\bin\sed.exe" | |
cd build | |
ctest ` | |
--output-on-failure ` | |
--build-config Release ` | |
--tests-regex tests.examples ` | |
--exclude-regex ` | |
$(grep -v -e ^# -e ^$ D:/a/hpx/hpx/.github/workflows/tests.examples.targets | sed ':b;N;$!bb;s/\n/|/g') |