Skip to content

Commit 448fe3d

Browse files
CI Install dependencies
1 parent 86bed6b commit 448fe3d

2 files changed

Lines changed: 6 additions & 46 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Configure sac2c
1515
run: cp -r /root/.sac2crc $HOME/.sac2crc
1616
- name: Install dependencies
17-
run: sudo apt install -y libcjson-dev libyaml-dev
17+
run: apt install -y libcjson-dev libyaml-dev
1818
- name: Build
1919
run: make

README.md

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,9 @@
1-
# SAC JSON Module
2-
## About
3-
This is a Sac module that wraps around some of the [cJSON](https://github.com/DaveGamble/cJSON) library.
1+
# SaC File Formats
42

5-
## Supported Functionality
6-
- Creation of:
7-
- JSON objects
8-
- JSON arrays
9-
- Booleans
10-
- Insertion into JSON object
11-
- Insertion into JSON array
12-
- Replacing elements in JSON arrays with Booleans
13-
- Numbers (int, float, double)
14-
- Insertion into JSON object
15-
- Insertion into JSON array
16-
- Replacing elements in JSON arrays with Numbers
17-
- Strings
18-
- Insertion into JSON object
19-
- Insertion into JSON array
20-
- Replacing elements in JSON arrays with Strings
21-
- Arrays
22-
- Insertion into JSON object
23-
- Insertion of additional elements after insertion by means of changing focus
24-
- Replacing elements in JSON arrays with JSON arrays
25-
- Objects
26-
- Insertion into JSON object
27-
- Insertion of additional elements after insertion by means of changing focus
28-
- Replacing elements in JSON arrays with JSON objects
29-
- Serialization to stdout of:
30-
- JSON objects
31-
- JSON arrays
32-
- Shifting focus:
33-
- to child nodes
34-
- to the root JSON object
3+
The project uses `cmake-common`.
4+
Upon cloning this repo it is important initialize submodules.
355

36-
## Build Instructions
37-
You will need to have installed sac2c and have a copy of the Stdlib installed as well. It is also assumed that the submodules are initialized and updated correctly either via cloning with `--recurse-submodules` or as follows:
386
```bash
39-
git submodules init
40-
git submodules update
41-
```
42-
43-
When submodules are in order follow the following build instructions to build the library:
44-
```bash
45-
mkdir build
46-
cd build
47-
cmake ..
48-
make -j4
7+
git submodule update --init --recursive
8+
make
499
```

0 commit comments

Comments
 (0)