Skip to content

Commit 5406618

Browse files
committed
No longer use the Boost reusable CI workflow in example.yml
1 parent ccdaf2e commit 5406618

1 file changed

Lines changed: 128 additions & 10 deletions

File tree

.github/workflows/example.yml

Lines changed: 128 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,132 @@ on:
2525
- meta/**
2626
- README.md
2727

28-
env:
29-
B2_TARGETS: libs/$SELF/example
30-
3128
jobs:
32-
call-boost-ci:
33-
name: Run Boost.CI
34-
uses: boostorg/boost-ci/.github/workflows/reusable.yml@master
35-
with:
36-
exclude_cxxstd: '98,03,0x,11,14,17'
37-
enable_pr_coverage: false
38-
enable_multiarch: false
29+
linux:
30+
runs-on: ubuntu-24.04
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
include:
35+
- { toolset: gcc-13, cxxstd: '20,23' }
36+
- { toolset: gcc-14, cxxstd: '20,23,26' }
37+
- { toolset: clang-17, cxxstd: '20,23' }
38+
- { toolset: clang-18, cxxstd: '20,23,26' }
39+
40+
steps:
41+
- name: Checkout Boost super-project
42+
uses: actions/checkout@v4
43+
with:
44+
repository: boostorg/boost
45+
ref: develop
46+
fetch-depth: 0
47+
48+
- name: Checkout this library
49+
uses: actions/checkout@v4
50+
with:
51+
path: libs/static_string
52+
fetch-depth: 0
53+
54+
- name: Initialize Boost submodules
55+
run: |
56+
git submodule update --init tools/boostdep
57+
python tools/boostdep/depinst/depinst.py --git_args '--jobs 4' static_string
58+
59+
- name: Bootstrap b2
60+
run: ./bootstrap.sh
61+
62+
- name: Generate Boost headers
63+
run: ./b2 headers
64+
65+
- name: Build and run example tests
66+
run: |
67+
./b2 libs/static_string/example \
68+
toolset=${{ matrix.toolset }} \
69+
cxxstd=${{ matrix.cxxstd }} \
70+
variant=debug,release \
71+
-j$(nproc)
72+
73+
macos:
74+
runs-on: macos-14
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
include:
79+
- { toolset: clang, cxxstd: '20,23' }
80+
81+
steps:
82+
- name: Checkout Boost super-project
83+
uses: actions/checkout@v4
84+
with:
85+
repository: boostorg/boost
86+
ref: develop
87+
fetch-depth: 0
88+
89+
- name: Checkout this library
90+
uses: actions/checkout@v4
91+
with:
92+
path: libs/static_string
93+
fetch-depth: 0
94+
95+
- name: Initialize Boost submodules
96+
run: |
97+
git submodule update --init tools/boostdep
98+
python3 tools/boostdep/depinst/depinst.py --git_args '--jobs 4' static_string
99+
100+
- name: Bootstrap b2
101+
run: ./bootstrap.sh
102+
103+
- name: Generate Boost headers
104+
run: ./b2 headers
105+
106+
- name: Build and run example tests
107+
run: |
108+
./b2 libs/static_string/example \
109+
toolset=${{ matrix.toolset }} \
110+
cxxstd=${{ matrix.cxxstd }} \
111+
variant=debug,release \
112+
-j$(sysctl -n hw.ncpu)
113+
114+
windows:
115+
runs-on: windows-2022
116+
strategy:
117+
fail-fast: false
118+
matrix:
119+
include:
120+
- { toolset: msvc-14.3, cxxstd: '20,latest' }
121+
122+
steps:
123+
- name: Checkout Boost super-project
124+
uses: actions/checkout@v4
125+
with:
126+
repository: boostorg/boost
127+
ref: develop
128+
fetch-depth: 0
129+
130+
- name: Checkout this library
131+
uses: actions/checkout@v4
132+
with:
133+
path: libs/static_string
134+
fetch-depth: 0
135+
136+
- name: Initialize Boost submodules
137+
run: |
138+
git submodule update --init tools/boostdep
139+
python tools/boostdep/depinst/depinst.py --git_args '--jobs 4' static_string
140+
141+
- name: Bootstrap b2
142+
run: .\bootstrap.bat
143+
shell: cmd
144+
145+
- name: Generate Boost headers
146+
run: .\b2 headers
147+
shell: cmd
148+
149+
- name: Build and run example tests
150+
run: |
151+
.\b2 libs/static_string/example ^
152+
toolset=${{ matrix.toolset }} ^
153+
cxxstd=${{ matrix.cxxstd }} ^
154+
variant=debug,release ^
155+
address-model=64
156+
shell: cmd

0 commit comments

Comments
 (0)