Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit e49bdb1

Browse files
committed
Fix ci
1 parent 47fae8c commit e49bdb1

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

.github/workflows/test-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: debian-latest
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

1919
- name: Install dependencies
20-
run: sudo apt-get install -y cmake nlohmann-json-dev libcurl4-openssl-dev
20+
run: sudo apt-get install -y cmake nlohmann-json3-dev libcurl4-openssl-dev
2121

2222
- name: Create build directory
2323
run: mkdir build
@@ -29,4 +29,4 @@ jobs:
2929
run: cmake --build build
3030

3131
- name: Run tests
32-
run: ctest --test-dir build
32+
run: ctest --test-dir build

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# spring-core-cpp
22
C++ version of the spring core repo. Used to be able to call the spring boot apis in c++ projects
33

4+
> Version **1.0.0**
5+
46
## Packages needed
57

68
### 1. Install nlohmann/json from the Package Manager
79

810
#### Debian
911
```bash
1012
sudo apt update
11-
sudo apt install nlohmann-json-dev
13+
sudo apt install nlohmann-json3-dev
1214
```
1315

1416
#### macOS
@@ -34,8 +36,27 @@ brew install curl
3436
```bash
3537
mkdir build && cd build
3638
cmake ..
37-
cmake --build . --config Release
38-
cmake --install . --prefix /path/to/install
39+
make install
40+
```
41+
42+
## How to use
43+
44+
```cmake
45+
cmake_minimum_required(VERSION 3.15)
46+
project(NewProject VERSION 1.0.0 LANGUAGES CXX)
47+
48+
# Set the C++ standard
49+
set(CMAKE_CXX_STANDARD 17)
50+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
51+
52+
# Find the FunixProductionsCore package
53+
find_package(FunixProductionsCore REQUIRED)
54+
55+
# Add the executable
56+
add_executable(NewProject main.cpp)
57+
58+
# Link the FunixProductionsCore library
59+
target_link_libraries(NewProject FunixProductions::FunixProductionsCore)
3960
```
4061

4162
## Env variables

0 commit comments

Comments
 (0)