Skip to content

Commit c10be17

Browse files
Make the CI generate the standalone header
1 parent 466657b commit c10be17

9 files changed

Lines changed: 80 additions & 1269 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##======================================================================================================================
2-
## SPY - Compact C++20 Tuple Toolbox
2+
## SPY - Informations Broker
33
## Copyright : SPY Project Contributors
44
## SPDX-License-Identifier: BSL-1.0
55
##======================================================================================================================

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##======================================================================================================================
2-
## SPY - Compact C++20 Tuple Toolbox
2+
## SPY - C++ Informations Broker
33
## Copyright : SPY Project Contributors
44
## SPDX-License-Identifier: BSL-1.0
55
##======================================================================================================================
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
##======================================================================================================================
2+
## SPY - C++ Informations Broker
3+
## Copyright : SPY Project Contributors
4+
## SPDX-License-Identifier: BSL-1.0
5+
##======================================================================================================================
6+
name: SPY Documentation Generation
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
package-standalone:
14+
runs-on: ubuntu-latest
15+
container:
16+
image: ghcr.io/jfalcou/compilers:v9
17+
strategy:
18+
fail-fast: false
19+
steps:
20+
- name: Fetch current branch
21+
uses: actions/checkout@v4.1.1
22+
23+
- name: Configure SPY
24+
run: |
25+
mkdir build && cd build
26+
cmake .. -G Ninja -DSPY_BUILD_TEST=OFF -DSPY_BUILD_DOCUMENTATION=OFF
27+
28+
- name: Generate standalone SPY header
29+
run: |
30+
ninja spy-standalone
31+
32+
- name: Upload artifacts
33+
uses: actions/upload-artifact@v4.1.1
34+
with:
35+
name: spy-standalone-header
36+
path: build/spy-standalone.hpp
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
##======================================================================================================================
2+
## SPY - C++ Informations Broker
3+
## Copyright : SPY Project Contributors
4+
## SPDX-License-Identifier: BSL-1.0
5+
##======================================================================================================================
6+
name: SPY Release Assets
7+
on:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
generate-standalone:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: ghcr.io/jfalcou/compilers:v9
16+
steps:
17+
- name: Fetch release branch
18+
uses: actions/checkout@v4.1.1
19+
20+
- name: Configure SPY
21+
run: |
22+
mkdir build && cd build
23+
cmake .. -G Ninja
24+
25+
- name: Generate standalone SPY header
26+
run: |
27+
cd build
28+
ninja spy-standalone
29+
30+
- name: Verify standalone file exists
31+
run: |
32+
find . -name "spy.hpp" -type f
33+
ls -la standalone/spy/ || echo "standalone/spy/ not found"
34+
35+
- name: Upload standalone header to release
36+
uses: softprops/action-gh-release@v2
37+
with:
38+
files: standalone/spy/spy.hpp

cmake/spy-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##======================================================================================================================
2-
## SPY - Compact C++20 Tuple Toolbox
2+
## SPY - C++ Informations Broker
33
## Copyright : SPY Project Contributors
44
## SPDX-License-Identifier: BSL-1.0
55
##======================================================================================================================

0 commit comments

Comments
 (0)