Builds the Linux packages with CPack.
Generate them by running Conan with `--options:host "&:package=True"
--options:host "&:static=True"` then after the build you can run `cpack
.` in the build directory.
@mathbunnyru Where do you think this should be built? QA needs a package
per-commit.
@godexsoft What to do with the `config.json` and service file. I can
just remove them or strip the comment out but it still won't work out
the box with the default `rippled.cfg`. Relates to #2191.
---------
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
…s to set version
Advantages:
- not modifying src dir in build time (`git clean` will also remove
less)
- simpler codecov (if we decide to move it to separate stage in the
future)
- The cpp file is perfectly valid, so it will be treated as a C++ files
by all the tooling
- No need to use CMAKE_PROJECT_INCLUDE_BEFORE, should work fine without
it
- Instead of generating + recompiling, we will just be doing
recompilation of 1 file
In this PR:
1 We create a golang grpc client to request data from rippled
2 We store the data into the specific place
3 Add unittests
4 Create build script, the build can be initiated by set conan option
`snapshot` being true.
Please ignore the grpc server part. It will be implemented in importing
tool.
Fixes#932
Also fixes#966
Decided not to add Summary type because it has the same functionality as Histogram but makes more calculations on client side (Clio side). See https://prometheus.io/docs/practices/histograms for detailed comparison.
* Generate conan profile in CI
* Move linux build into main workflow
* Add saving/restoring conan data
* Move cache to Linux
* Fix error
* Change key to hash from conanfile
* Fix path error
* Populate cache only in develop branch
* Big refactor
- Move duplicated code to actions
- Isolate mac build from home directory
- Separate ccache and conan caches
* Fix errors
* Change ccache cache name and fix errors
* Always populate cache
* Use newer ccache on Linux
* Strip tests
* Better conan hash