Skip to content

Commit 4deb922

Browse files
committed
Add GitHub CI workflow
1 parent 2d53af6 commit 4deb922

File tree

4 files changed

+49
-4
lines changed

4 files changed

+49
-4
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-and-test:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
build_type: [Debug, Release]
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Configure CMake
25+
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
26+
27+
- name: Build
28+
run: cmake --build build --config ${{ matrix.build_type }}
29+
30+
- name: Run Tests
31+
working-directory: build
32+
run: ctest -C ${{ matrix.build_type }} --output-on-failure
33+
34+
- name: Upload artifacts (Release only)
35+
if: matrix.build_type == 'Release' && matrix.os == 'ubuntu-latest'
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: slick_logger-package
39+
path: build/dist/*.zip

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# v1.0.0.6 - 10-14-2025
22
- Update slick_queue to v1.1.0.0
3+
- Added GitHub CI workflow for automated testing across Ubuntu, Windows, and macOS
4+
- Added CI status badge to README
35

46
# v1.0.0.5 - 10-03-2025
57
- Support char* logging argument to avoid build error.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# slick_logger
22

3+
[![CI](https://github.com/SlickQuant/slick_logger/actions/workflows/ci.yml/badge.svg)](https://github.com/SlickQuant/slick_logger/actions/workflows/ci.yml)
4+
35
A high-performance, cross-platform **header-only** logging library for C++20 using a multi-producer, multi-consumer ring buffer with **multi-sink support** and **log rotation** capabilities.
46

57
## Features

include/slick_logger/logger.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
#define SLICK_LOGGER_VERSION_MAJOR 1
5757
#define SLICK_LOGGER_VERSION_MINOR 0
5858
#define SLICK_LOGGER_VERSION_PATCH 0
59-
#define SLICK_LOGGER_VERSION_TWEAK 5
60-
#define SLICK_LOGGER_VERSION "1.0.0.5"
59+
#define SLICK_LOGGER_VERSION_TWEAK 6
60+
#define SLICK_LOGGER_VERSION "1.0.0.6"
6161

6262
#ifndef SLICK_LOGGER_MAX_ARGS
6363
#define SLICK_LOGGER_MAX_ARGS 20
@@ -1021,8 +1021,10 @@ inline DailyFileSink::DailyFileSink(const std::filesystem::path& base_path, cons
10211021

10221022
inline DailyFileSink::DailyFileSink(const std::filesystem::path& base_path, const RotationConfig& config,
10231023
const std::string& custom_timestamp_format, std::string&& name)
1024-
: FileSink(base_path, custom_timestamp_format, std::move(name)), config_(config), base_path_(base_path),
1025-
current_file_size_(0) {
1024+
: FileSink(base_path, custom_timestamp_format, std::move(name))
1025+
, config_(config)
1026+
, base_path_(base_path)
1027+
, current_file_size_(0) {
10261028
current_date_ = get_date_string();
10271029

10281030
// Check if file already exists and is from a previous day

0 commit comments

Comments
 (0)