blob: 7bf8e6fe3bd8d0e8c6f6f62c5043b2220163b888 (
plain) (
blame)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
name: Visual Studio versions
on:
workflow_call:
workflow_dispatch:
permissions: {}
jobs:
build:
strategy:
matrix:
toolset:
- msvc143
- vs2022
- msvc145
- vs2026
include:
# Runner image.
- {toolset: msvc143, os: windows-2022}
- {toolset: vs2022, os: windows-2022}
- {toolset: msvc145, os: windows-2025}
- {toolset: vs2026, os: windows-2025}
# Boost version.
- boost-version: 1.91.0
# Some Boost libraries commonly used by me.
- libraries: filesystem program_options regex test
# Build settings.
- platform: x64
- configuration: Release
runs-on: ${{ matrix.os }}
name: ${{ matrix.toolset }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Cache Boost
uses: actions/cache@v6
with:
path: '${{ runner.workspace }}/boost/boost_*.tar.gz'
key: 'boost_${{ matrix.boost-version }}'
- name: Set common variables
uses: $/.github/actions/common-variables
with:
toolset: ${{ matrix.toolset }}
- name: Clean up PATH
uses: egor-tensin/cleanup-path@v5
if: env.CI_HOST_WINDOWS
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.x'
- name: Set up software environment
uses: $/.github/actions/software-environment
- name: Download Boost
uses: $/.github/actions/download-boost
with:
boost-version: ${{ matrix.boost-version }}
- name: Build Boost
uses: $/.github/actions/build-boost
with:
toolset: ${{ matrix.toolset }}
libraries: ${{ matrix.libraries }}
platform: ${{ matrix.platform }}
configuration: ${{ matrix.configuration }}
continue-on-error: true
- name: Check that Boost was bootstrapped
uses: $/.github/actions/check-boost-bootstrapped
- name: Check that Boost libraries were built
uses: $/.github/actions/check-boost-libraries
with:
libraries: ${{ matrix.libraries }}
platform: ${{ matrix.platform }}
configuration: ${{ matrix.configuration }}
- name: Build examples/boost
id: build_example
uses: $/.github/actions/build-example
with:
src_dir: test/examples/boost
boost_dir: ${{ env.BOOST_DIR }}
toolset: ${{ matrix.toolset }}
platform: ${{ matrix.platform }}
configuration: ${{ matrix.configuration }}
- name: Verify runtime library linkage
uses: $/.github/actions/check-runtime-library
with:
install_dir: ${{ steps.build_example.outputs.install_dir }}
- name: Verify architecture
uses: $/.github/actions/check-arch
with:
install_dir: ${{ steps.build_example.outputs.install_dir }}
expected: ${{ matrix.platform }}
- name: Run examples/boost
uses: $/.github/actions/run-example-boost
with:
install_dir: ${{ steps.build_example.outputs.install_dir }}
|