mirror of
https://github.com/OpenCoin/oc-mint-cpp.git
synced 2024-12-22 15:49:40 +01:00
Compare commits
3 Commits
2a33e41376
...
1a0ad2dc90
Author | SHA1 | Date | |
---|---|---|---|
|
1a0ad2dc90 | ||
|
a5bce23891 | ||
|
d251bf4f54 |
35
.github/workflows/cmake.yaml
vendored
35
.github/workflows/cmake.yaml
vendored
@ -19,29 +19,28 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest,
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
macos-latest,
|
|
||||||
windows-latest]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Prepare dependencies
|
- name: Prepare dependencies
|
||||||
run: |
|
run: |
|
||||||
if [ "$RUNNER_OS" == "Linux" ]; then
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
||||||
sudo apt-get update && \
|
sudo apt-get update && \
|
||||||
sudo apt-get install -yq \
|
sudo apt-get install -yq \
|
||||||
libasio-dev \
|
libboost-system-dev \
|
||||||
libssl-dev zlib1g-dev \
|
libboost-date-time-dev \
|
||||||
cmake graphviz doxygen
|
cmake \
|
||||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
graphviz doxygen
|
||||||
VCPKG_DEFAULT_TRIPLET=x64-windows vcpkg install
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
elif [ "$RUNNER_OS" == "macOS" ]; then
|
choco install boost-msvc-14.3 graphviz doxygen.install
|
||||||
brew install asio openssl zlib doxygen graphviz
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
else
|
brew install boost graphviz doxygen
|
||||||
echo "$RUNNER_OS not supported"
|
else
|
||||||
exit 1
|
echo "$RUNNER_OS not supported"
|
||||||
fi
|
exit 1
|
||||||
shell: bash
|
fi
|
||||||
|
shell: bash
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B build
|
run: cmake -B build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
cmake_minimum_required(VERSION 3.15.0 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
project(oc-issuer VERSION 0.0.2 LANGUAGES CXX)
|
|
||||||
|
|
||||||
enable_language(C)
|
enable_language(C)
|
||||||
enable_language(CXX)
|
enable_language(CXX)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS On)
|
|
||||||
|
|
||||||
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||||||
if(POLICY CMP0077)
|
if(POLICY CMP0077)
|
||||||
@ -18,6 +15,7 @@ else()
|
|||||||
add_compile_options(-Wall -Wextra -pedantic)
|
add_compile_options(-Wall -Wextra -pedantic)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
project(oc-issuer VERSION 0.0.2 LANGUAGES CXX)
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
@ -30,7 +28,6 @@ set(CROW_BUILD_EXAMPLES Off)
|
|||||||
set(CROW_BUILD_TOOLS Off)
|
set(CROW_BUILD_TOOLS Off)
|
||||||
set(CROW_BUILD_TESTS Off)
|
set(CROW_BUILD_TESTS Off)
|
||||||
set(CROW_BUILD_DOCS Off)
|
set(CROW_BUILD_DOCS Off)
|
||||||
set(CROW_FEATURES "ssl;compression")
|
|
||||||
|
|
||||||
# add crow project to the build
|
# add crow project to the build
|
||||||
FetchContent_Declare(crow
|
FetchContent_Declare(crow
|
||||||
@ -72,7 +69,7 @@ set(CATCH_INSTALL_EXTRAS Off)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
Catch2
|
Catch2
|
||||||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
||||||
GIT_TAG v3.6.0
|
GIT_TAG v3.3.1
|
||||||
)
|
)
|
||||||
|
|
||||||
FetchContent_MakeAvailable(Catch2)
|
FetchContent_MakeAvailable(Catch2)
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "crow",
|
|
||||||
"version-string": "master",
|
|
||||||
"dependencies": [
|
|
||||||
"asio",
|
|
||||||
"openssl",
|
|
||||||
"zlib"
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user