forked from open-source-parsers/jsoncpp
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 929 Bytes
/
Copy pathamalgamate.yml
File metadata and controls
39 lines (31 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Amalgamation
on: [check_run, push, pull_request]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
amalgamation:
runs-on: ubuntu-latest
steps:
- name: checkout project
uses: actions/checkout@v5
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: run amalgamate script
run: |
python amalgamate.py
- name: test compile amalgamated source
run: |
cat << 'EOF' > test_amalgamation.cpp
#include "json/json.h"
#include <iostream>
int main() {
Json::Value root;
root["hello"] = "world";
std::cout << root.toStyledString() << std::endl;
return 0;
}
EOF
c++ -std=c++11 -I dist dist/jsoncpp.cpp test_amalgamation.cpp -o test_amalgamation
./test_amalgamation