Browse Source

better yaml

master 0.0.0
Arwed Mett 3 years ago
parent
commit
6e1a1af712
Signed by: Pfeifenjoy GPG Key ID: 86943827297DA9FC
  1. 62
      .core.yml
  2. 2
      CMakeLists.txt
  3. 1
      Dockerfile
  4. 0
      cmake/require-git.cmake

62
.core.yml

@ -4,42 +4,42 @@ name: default
steps:
- name: build
image: pfeifenjoy/logging.h
commands:
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild
- cmake --build build
image: pfeifenjoy/logging.h
commands:
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild
- cmake --build build
- name: test
image: pfeifenjoy/logging.h
commands:
- ctest --verbose build
image: pfeifenjoy/logging.h
commands:
- ctest --verbose build
- name: memcheck
image: pfeifenjoy/logging.h
commands:
- valgrind --leak-check=yes --error-exitcode=1 ./build/example
image: pfeifenjoy/logging.h
commands:
- valgrind --leak-check=yes --error-exitcode=1 ./build/example
- name: linux
image: pfeifenjoy/logging.h
commands:
- rm -rf build
- cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild
- cmake --build build --target package
image: pfeifenjoy/logging.h
commands:
- rm -rf build
- cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild
- cmake --build build --target package
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.metthub.de
files:
- build/logging.h-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.metthub.de
files:
- build/logging.h-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag

2
CMakeLists.txt

@ -3,7 +3,7 @@ project(logging.h LANGUAGES C)
message(STATUS ${CMAKE_SYSTEM_NAME})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
include(git)
include(require-git)
#Targets
add_library(Logging src/logging.c)

1
Dockerfile

@ -2,6 +2,7 @@ FROM debian
WORKDIR /
RUN apt update
RUN apt -y install gcc
RUN apt -y install git
RUN apt -y install cmake
RUN apt -y install valgrind
RUN mkdir /working-dir

0
cmake/Git.cmake → cmake/require-git.cmake

Loading…
Cancel
Save