generated from jothepro/cpp-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 317d6ce
Showing
24 changed files
with
3,279 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
release: | ||
types: [released, prereleased] | ||
|
||
name: Configure, Build, Test, Create and Upload library | ||
|
||
jobs: | ||
configure: | ||
name: Configure, Build, Test, Create and Upload library | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Conan | ||
uses: turtlebrowser/get-conan@main | ||
- name: Add artifactory remote | ||
run: conan remote add jothepro-conan-public https://jothepro.jfrog.io/artifactory/api/conan/conan-public | ||
- name: Install dependencies | ||
run: conan install . | ||
- name: configure, build and test project | ||
if: github.event_name != 'release' | ||
run: conan build . | ||
- name: configure, build, test and create project for beta channel | ||
if: github.event.release.prerelease | ||
run: conan create . jothepro/beta | ||
- name: configure, build, test and create project for stable channel | ||
if: ${{ !github.event.release.prerelease }} | ||
run: conan create . jothepro/stable | ||
- name: upload to artifactory | ||
if: github.event_name == 'release' | ||
run: conan upload mylibrary -r=jothepro-conan-public --all --confirm | ||
env: | ||
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }} | ||
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish Documentation to Github Pages | ||
on: | ||
release: | ||
types: [released] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'true' | ||
- name: set version | ||
run: echo "PROJECT_NUMBER = `git describe --tags`" >> Doxyfile | ||
- name: Generate Documentation | ||
uses: mattnotmitt/doxygen-action@v1 | ||
- name: Publish generated content to GitHub Pages | ||
uses: tsunematsu21/[email protected] | ||
with: | ||
dir: docs/html | ||
branch: gh-pages | ||
token: ${{ secrets.ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
VERSION | ||
build | ||
cmake-build-* | ||
.idea | ||
docs/html | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "docs/doxygen-awesome-css"] | ||
path = docs/doxygen-awesome-css | ||
url = https://github.com/jothepro/doxygen-awesome-css.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
# Appends the cmake/modules path to MAKE_MODULE_PATH variable. | ||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) | ||
|
||
include(GetVersion) | ||
include(${CMAKE_BINARY_DIR}/conan_paths.cmake OPTIONAL) | ||
|
||
get_version(PROJECT_VERSION) | ||
|
||
project(MyLibrary | ||
LANGUAGES CXX | ||
VERSION ${PROJECT_VERSION}) | ||
|
||
|
||
find_package(Doxygen) | ||
if(DOXYGEN_FOUND) | ||
add_custom_target( doxygen | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMENT "Generating API documentation with Doxygen" | ||
VERBATIM | ||
) | ||
endif(DOXYGEN_FOUND) | ||
|
||
add_subdirectory(src) | ||
|
||
include(CTest) | ||
if(BUILD_TESTING) | ||
set(CMAKE_CTEST_ARGUMENTS "--verbose") | ||
add_subdirectory(test) | ||
endif() |
Oops, something went wrong.