Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jothepro committed Mar 25, 2021
0 parents commit 317d6ce
Show file tree
Hide file tree
Showing 24 changed files with 3,279 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/configureBuildTestCreateAndUpload.yaml
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 }}
23 changes: 23 additions & 0 deletions .github/workflows/publish-pages.yaml
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 }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VERSION
build
cmake-build-*
.idea
docs/html
.DS_Store
3 changes: 3 additions & 0 deletions .gitmodules
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
31 changes: 31 additions & 0 deletions CMakeLists.txt
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()
Loading

0 comments on commit 317d6ce

Please sign in to comment.