Browse Source

nicer build

master
Arwed Mett 3 years ago
parent
commit
4612b3e2fd
Signed by: Pfeifenjoy GPG Key ID: 86943827297DA9FC
  1. 48
      .bash_history
  2. 18
      .core.yml
  3. 2
      CMakeLists.txt

48
.bash_history

@ -0,0 +1,48 @@
ls
rm -r build/
ls
cmake -H. -Bbuild/win64 --config Release -DCMAKE_TOOLCHAIN_FILE=cmake/x86_64-w64-mingw32.cmake
cmake --config Release -H. -Bbuild/win64 -DCMAKE_TOOLCHAIN_FILE=cmake/x86_64-w64-mingw32.cmake
cmake --build build/win64/
ls build/
ls build/win64/
cmake --build build/win64/ --target package
apt install nsis
apt install nsis
cmake --build build/win64/ --target package
cd build/win64/
ls
tar xvf logging.h-Windows-master-584ac4a.zip
unzip logging.h-Windows-master-584ac4a.zip
apt install unzip
unzip logging.h-Windows-master-584ac4a.zip
ls
ls logging.h-Windows-master-584ac4a
ls logging.h-Windows-master-584ac4a/lib/
ls logging.h-Windows-master-584ac4a/include/
cmake --build .
cmake --build .
ls
cd ..
cd ..
rm -rf build/
ls
cmake --config Release -H. -Bbuild/win64 -DCMAKE_TOOLCHAIN_FILE=cmake/x86_64-w64-mingw32.cmake
cmake --build build/win64/
cd build/win64/
ls
cmake --build . --target package
ls
apt install wine
apt install ninja
ls
wine logging.h-Windows-master-584ac4a.exe
cd
ls
ls -lisa
rm -r .cache/
rm -r .bash_history
rm -r .viminfo
rm -r .wine/
ls
exit

18
.core.yml

@ -6,18 +6,13 @@ steps:
- name: build
image: pfeifenjoy/logging.h
commands:
- mkdir build
- cd build
- cmake ..
- cmake --build .
- cd ..
- cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild
- cmake --build build
- name: test
image: pfeifenjoy/logging.h
commands:
- cd build
- ctest --verbose .
- cd ..
- ctest --verbose build
- name: memcheck
image: pfeifenjoy/logging.h
@ -27,8 +22,9 @@ steps:
- name: linux
image: pfeifenjoy/logging.h
commands:
- cmake --config Release -H. -Bbuild/linux64
- cmake --build build/linux64 --target package
- rm -rf build
- cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild
- cmake --build build --target package
- name: gitea_release
image: plugins/gitea-release
@ -37,7 +33,7 @@ steps:
from_secret: gitea_token
base_url: https://gitea.metthub.de
files:
- build/linux64/logging.h-*
- build/logging.h-*
checksum:
- md5
- sha1

2
CMakeLists.txt

@ -12,7 +12,7 @@ target_include_directories(Logging PUBLIC
$<INSTALL_INTERFACE:include>
)
if(CMAKE_BUILD_TYPE MATCHES Debug)
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
add_executable(example example/main.c)
target_link_libraries(example Logging)
endif()

Loading…
Cancel
Save