File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 53
53
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
54
54
source "$HOME/.cargo/env"
55
55
56
- - name : " Generate the header only library"
57
- run : ./scripts/create_single_header.sh
56
+ - name : Configure build
57
+ run : cmake -Bbuild -H$GITHUB_WORKSPACE -DDBC_GENERATE_SINGLE_HEADER=ON
58
+
59
+ - name : Generate the header file
60
+ run : cmake --build build --parallel `nproc` --target single_header
58
61
59
62
- uses : actions/upload-artifact@v4
60
63
with :
Original file line number Diff line number Diff line change @@ -38,13 +38,19 @@ cmake -LAH ..
38
38
39
39
### Creating a Single Header File
40
40
41
- If you want to generate one header file you will need to run the ` ./scripts/create_single_header.sh ` .
42
-
43
41
It requires you have ` cargo ` installed from rust. See these instructions if you don't have that https://www.rust-lang.org/tools/install .
44
42
It uses the https://github.com/Felerius/cpp-amalgamate crate to do the single header file creation.
45
43
46
44
The output will be generated in the ` build/single_header/libdbc/ ` folder. You can run a cmake command to build this as well as other targets.
47
45
46
+ To just build the single header you can simply run the target:
47
+ ``` shell
48
+ cmake -Bbuild -H. -DDBC_GENERATE_SINGLE_HEADER=ON
49
+
50
+ cmake --build build --parallel ` nproc` --target single-header
51
+ ```
52
+
53
+
48
54
## Testing
49
55
50
56
I am trying to always make sure that this is very well tested code. I am using Catch2 to do this
You can’t perform that action at this time.
0 commit comments