Skip to content

Commit 09c92ec

Browse files
committed
Update slick_queue to v1.2.1; Add release workflow; update copyright years
1 parent 7f9bad1 commit 09c92ec

File tree

8 files changed

+90
-30
lines changed

8 files changed

+90
-30
lines changed

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: [SlickQuant, kzhdev]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Trigger on version tags like v0.1.0, v1.0.0, etc.
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Extract version from tag
19+
id: get_version
20+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
21+
22+
- name: Extract changelog for this version
23+
id: changelog
24+
run: |
25+
if [ -f CHANGELOG ]; then
26+
# Extract the section for this version from CHANGELOG
27+
VERSION="${{ github.ref_name }}"
28+
# Escape dots in version for regex
29+
VERSION_ESCAPED=$(echo "$VERSION" | sed 's/\./\\./g')
30+
# Use awk to extract content: start at version header, stop at next ## header
31+
CHANGES=$(awk "BEGIN{p=0} /^# $VERSION_ESCAPED/{p=1;next} /^# /{p=0} p" CHANGELOG | sed '/^$/d')
32+
33+
if [ -z "$CHANGES" ]; then
34+
echo "CHANGELOG_CONTENT=No changelog entry found for this version." >> $GITHUB_OUTPUT
35+
else
36+
# Escape newlines for GitHub output
37+
echo "CHANGELOG_CONTENT<<EOF" >> $GITHUB_OUTPUT
38+
echo "$CHANGES" >> $GITHUB_OUTPUT
39+
echo "EOF" >> $GITHUB_OUTPUT
40+
fi
41+
else
42+
echo "CHANGELOG_CONTENT=CHANGELOG not found." >> $GITHUB_OUTPUT
43+
fi
44+
45+
- name: Create header archive
46+
run: |
47+
zip -r ./slick_logger-${{ steps.get_version.outputs.VERSION }}.zip include/
48+
49+
- name: Create Release
50+
uses: softprops/action-gh-release@v1
51+
with:
52+
name: Release ${{ github.ref_name }}
53+
body: |
54+
## Changes
55+
56+
${{ steps.changelog.outputs.CHANGELOG_CONTENT }}
57+
58+
draft: true
59+
prerelease: false
60+
generate_release_notes: false
61+
files: |
62+
slick_logger-${{ steps.get_version.outputs.VERSION }}.zip

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v1.0.2 - 01-03-2026
2+
- Update slick_queue to v1.2.1
3+
- Added GitHub release workflow
4+
- Update Copyright years
5+
16
# v1.0.1 - 11-14-2025
27
- Update slick_queue to v1.1.2
38
- Added vcpkg integration

CLAUDE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

CMakeLists.txt

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22

33
project(slick_logger
4-
VERSION 1.0.1
4+
VERSION 1.0.2
55
LANGUAGES CXX)
66

77
set(CMAKE_CXX_STANDARD 20)
@@ -14,7 +14,7 @@ set(BUILD_SLICK_QUEUE_TESTS OFF CACHE BOOL "" FORCE)
1414
FetchContent_Declare(
1515
slick_queue
1616
GIT_REPOSITORY https://github.com/SlickQuant/slick_queue.git
17-
GIT_TAG v1.1.2
17+
GIT_TAG v1.2.1
1818
)
1919
FetchContent_MakeAvailable(slick_queue)
2020

@@ -44,8 +44,6 @@ target_include_directories(slick_logger INTERFACE
4444
)
4545
target_link_libraries(slick_logger INTERFACE slick::slick_queue)
4646

47-
message(STATUS "Slick Queue: ${slick_queue_SOURCE_DIR}")
48-
4947
if (MSVC)
5048
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
5149
add_definitions(-D_WIN32_WINNT=0x0A00)
@@ -104,23 +102,4 @@ install(FILES
104102
DESTINATION lib/cmake/slick_logger
105103
)
106104

107-
message(STATUS "slick_logger: ${PROJECT_VERSION}")
108-
109-
if(CMAKE_BUILD_TYPE STREQUAL "Release")
110-
add_custom_target(dist_slick_logger ALL
111-
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/dist/include
112-
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
113-
COMMENT "Copying slick_logger headers to dist/include"
114-
VERBATIM
115-
)
116-
117-
if (PROJECT_IS_TOP_LEVEL)
118-
add_custom_target(package_slick_logger ALL
119-
COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_BINARY_DIR}/dist/slick_logger_${PROJECT_VERSION}.zip" --format=zip "include"
120-
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/dist"
121-
COMMENT "Creating zip archive"
122-
)
123-
124-
add_dependencies(package_slick_logger dist_slick_logger)
125-
endif()
126-
endif()
105+
message(STATUS "slick_logger: ${PROJECT_VERSION}")

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 SlickQuant
3+
Copyright (c) 2025-2026 SlickQuant
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

include/slick/logger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// MIT License
22
//
3-
// Copyright (c) 2025 SlickQuant
3+
// Copyright (c) 2025-2026 SlickQuant
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy
66
// of this software and associated documentation files (the "Software"), to deal
@@ -55,8 +55,8 @@
5555

5656
#define SLICK_LOGGER_VERSION_MAJOR 1
5757
#define SLICK_LOGGER_VERSION_MINOR 0
58-
#define SLICK_LOGGER_VERSION_PATCH 1
59-
#define SLICK_LOGGER_VERSION "1.0.1"
58+
#define SLICK_LOGGER_VERSION_PATCH 2
59+
#define SLICK_LOGGER_VERSION "1.0.2"
6060

6161
#ifndef SLICK_LOGGER_MAX_ARGS
6262
#define SLICK_LOGGER_MAX_ARGS 20

src/logger.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// MIT License
22
//
3-
// Copyright (c) 2025 SlickQuant
3+
// Copyright (c) 2025-2026 SlickQuant
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy
66
// of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)