-
-
Notifications
You must be signed in to change notification settings - Fork 437
62 lines (58 loc) · 2.2 KB
/
windows_release_gcc_mingw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright (c) 2023 The STE||AR-Group
#
# 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, gcc/mingw 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: |
choco install ninja -y
md C:\projects
$client = new-object System.Net.WebClient
$client.DownloadFile("https://master.dl.sourceforge.net/project/boost/boost/1.78.0/boost_1_78_0.7z","C:\projects\boost_1_78_0.7z")
7z x C:\projects\boost_1_78_0.7z -y -oC:\projects\boost
cd C:\projects\boost\boost_1_78_0
.\bootstrap.bat gcc
.\b2.exe `
link=shared `
variant=release `
architecture=x86 `
address-model=64 `
threading=multi `
--with-iostreams `
--build-type=complete `
install
$client.DownloadFile("https://download.open-mpi.org/release/hwloc/v2.8/hwloc-win64-build-2.8.0.zip","C:\projects\hwloc-win64-build-2.8.0.zip")
7z x C:\projects\hwloc-win64-build-2.8.0.zip -y -oC:\projects
- name: Configure
shell: bash
run: |
cmake . -Bbuild -G'Ninja' \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=g++ \
-DBOOST_ROOT="C:\Boost" \
-DHWLOC_ROOT="C:\projects\hwloc-win64-build-2.8.0" \
-DHPX_WITH_CXX_STANDARD=20 \
-DHPX_WITH_STATIC_LINKING=ON \
-DHPX_WITH_MALLOC=system \
-DHPX_WITH_FETCH_ASIO=ON \
-DHPX_WITH_PKGCONFIG=OFF \
-DHPX_WITH_TESTS_MAX_THREADS_PER_LOCALITY=2 \
-DHPX_WITH_EXAMPLES=ON \
-DHPX_WITH_TESTS=ON \
-DHPX_WITH_TESTS_UNIT=ON \
-DHPX_WITH_DEPRECATION_WARNINGS=OFF \
-DHPX_WITH_MODULES_AS_STATIC_LIBRARIES=OFF
- name: Build
shell: bash
run: |
cmake --build build --config Release -- -j 2