Skip to content

Commit b440890

Browse files
docs: changelog update (#643)
* docs: changelog update * chore: bump version(s) * style: pre-commit.ci fixes * docs: spelling fix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4101964 commit b440890

File tree

6 files changed

+59
-76
lines changed

6 files changed

+59
-76
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.1.0.{build}
1+
version: 2.1.1.{build}
22

33
branches:
44
only:

.github/actions/quick_cmake/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@ inputs:
55
description: 'Other arguments'
66
required: false
77
default: ''
8+
cmake-version:
9+
description: 'The CMake version to run'
10+
required: true
811

912
runs:
1013
using: composite
1114
steps:
15+
- name: CMake ${{ inputs.cmake-version }}
16+
uses: jwlawson/actions-setup-cmake@v1.11
17+
with:
18+
cmake-version: "${{ inputs.cmake-version }}"
1219
- run: |
1320
mkdir -p build-tmp
1421
touch build-tmp/tmp
1522
rm -r build-tmp/*
16-
(cd build-tmp && cmake .. ${{ inputs.args}})
23+
(cd build-tmp && cmake .. ${{ inputs.args }})
1724
rm -r build-tmp
1825
shell: bash

.github/workflows/tests.yml

Lines changed: 38 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -40,141 +40,111 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v2
4242

43-
- name: CMake 3.4
44-
uses: jwlawson/actions-setup-cmake@v1.11
43+
- name: Check CMake 3.4
4544
with:
4645
cmake-version: "3.4"
47-
- name: Check CMake 3.4
4846
uses: ./.github/actions/quick_cmake
4947

50-
- name: CMake 3.5
51-
uses: jwlawson/actions-setup-cmake@v1.11
52-
with:
53-
cmake-version: "3.5"
5448
- name: Check CMake 3.5
5549
uses: ./.github/actions/quick_cmake
50+
with:
51+
cmake-version: "3.5"
5652
if: success() || failure()
5753

58-
- name: CMake 3.6
59-
uses: jwlawson/actions-setup-cmake@v1.11
60-
with:
61-
cmake-version: "3.6"
6254
- name: Check CMake 3.6
6355
uses: ./.github/actions/quick_cmake
56+
with:
57+
cmake-version: "3.6"
6458
if: success() || failure()
6559

66-
- name: CMake 3.7
67-
uses: jwlawson/actions-setup-cmake@v1.11
68-
with:
69-
cmake-version: "3.7"
7060
- name: Check CMake 3.7
7161
uses: ./.github/actions/quick_cmake
62+
with:
63+
cmake-version: "3.7"
7264
if: success() || failure()
7365

74-
- name: CMake 3.8
75-
uses: jwlawson/actions-setup-cmake@v1.11
76-
with:
77-
cmake-version: "3.8"
7866
- name: Check CMake 3.8
7967
uses: ./.github/actions/quick_cmake
68+
with:
69+
cmake-version: "3.8"
8070
if: success() || failure()
8171

82-
- name: CMake 3.9
83-
uses: jwlawson/actions-setup-cmake@v1.11
84-
with:
85-
cmake-version: "3.9"
8672
- name: Check CMake 3.9
8773
uses: ./.github/actions/quick_cmake
74+
with:
75+
cmake-version: "3.9"
8876
if: success() || failure()
8977

90-
- name: CMake 3.10
91-
uses: jwlawson/actions-setup-cmake@v1.11
92-
with:
93-
cmake-version: "3.10"
9478
- name: Check CMake 3.10
9579
uses: ./.github/actions/quick_cmake
80+
with:
81+
cmake-version: "3.10"
9682
if: success() || failure()
9783

98-
- name: CMake 3.11
99-
uses: jwlawson/actions-setup-cmake@v1.11
100-
with:
101-
cmake-version: "3.11"
10284
- name: Check CMake 3.11 (full)
10385
uses: ./.github/actions/quick_cmake
10486
with:
87+
cmake-version: "3.11"
10588
args: -DCLI11_SANITIZERS=ON -DCLI11_BUILD_EXAMPLES_JSON=ON
10689
if: success() || failure()
10790

108-
- name: CMake 3.12
109-
uses: jwlawson/actions-setup-cmake@v1.11
110-
with:
111-
cmake-version: "3.12"
11291
- name: Check CMake 3.12
11392
uses: ./.github/actions/quick_cmake
93+
with:
94+
cmake-version: "3.12"
11495
if: success() || failure()
11596

116-
- name: CMake 3.13
117-
uses: jwlawson/actions-setup-cmake@v1.11
118-
with:
119-
cmake-version: "3.13"
12097
- name: Check CMake 3.13
12198
uses: ./.github/actions/quick_cmake
99+
with:
100+
cmake-version: "3.13"
122101
if: success() || failure()
123102

124-
- name: CMake 3.14
125-
uses: jwlawson/actions-setup-cmake@v1.11
126-
with:
127-
cmake-version: "3.14"
128103
- name: Check CMake 3.14
129104
uses: ./.github/actions/quick_cmake
105+
with:
106+
cmake-version: "3.14"
130107
if: success() || failure()
131108

132-
- name: CMake 3.15
133-
uses: jwlawson/actions-setup-cmake@v1.11
134-
with:
135-
cmake-version: "3.15"
136109
- name: Check CMake 3.15
137110
uses: ./.github/actions/quick_cmake
111+
with:
112+
cmake-version: "3.15"
138113
if: success() || failure()
139114

140-
- name: CMake 3.16
141-
uses: jwlawson/actions-setup-cmake@v1.11
142-
with:
143-
cmake-version: "3.16"
144115
- name: Check CMake 3.16
145116
uses: ./.github/actions/quick_cmake
117+
with:
118+
cmake-version: "3.16"
146119
if: success() || failure()
147120

148-
- name: CMake 3.17
149-
uses: jwlawson/actions-setup-cmake@v1.11
150-
with:
151-
cmake-version: "3.17"
152121
- name: Check CMake 3.17
153122
uses: ./.github/actions/quick_cmake
123+
with:
124+
cmake-version: "3.17"
154125
if: success() || failure()
155126

156-
- name: CMake 3.18
157-
uses: jwlawson/actions-setup-cmake@v1.11
158-
with:
159-
cmake-version: "3.18"
160127
- name: Check CMake 3.18
161128
uses: ./.github/actions/quick_cmake
129+
with:
130+
cmake-version: "3.18"
162131
if: success() || failure()
163132

164-
- name: CMake 3.19
165-
uses: jwlawson/actions-setup-cmake@v1.11
166-
with:
167-
cmake-version: "3.19"
168-
- name: Check CMake 3.19 (full)
133+
- name: Check CMake 3.19
169134
uses: ./.github/actions/quick_cmake
170135
with:
171-
args: -DCLI11_SANITIZERS=ON -DCLI11_BUILD_EXAMPLES_JSON=ON
136+
cmake-version: "3.19"
172137
if: success() || failure()
173138

174-
- name: CMake 3.20
175-
uses: jwlawson/actions-setup-cmake@v1.11
139+
- name: Check CMake 3.20
140+
uses: ./.github/actions/quick_cmake
176141
with:
177142
cmake-version: "3.20"
178-
- name: Check CMake 3.20
143+
if: success() || failure()
144+
145+
- name: Check CMake 3.21 (full)
179146
uses: ./.github/actions/quick_cmake
147+
with:
148+
cmake-version: "3.21"
149+
args: -DCLI11_SANITIZERS=ON -DCLI11_BUILD_EXAMPLES_JSON=ON
180150
if: success() || failure()

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ is not passed, or every time the option is parsed.
2323
[#633]: https://github.com/CLIUtils/CLI11/pull/633
2424
[#635]: https://github.com/CLIUtils/CLI11/pull/635
2525

26+
### Version 2.1.1: Quick Windows fix
27+
28+
* A collision with `min`/`max` macros on Windows has been fixed. [#642][]
29+
30+
[#642]: https://github.com/CLIUtils/CLI11/pull/642
31+
2632
## Version 2.0: Simplification
2733

2834
This version focuses on cleaning up deprecated functionality, and some minor

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ cmake_minimum_required(VERSION 3.4)
22
# Note: this is a header only library. If you have an older CMake than 3.4,
33
# just add the CLI11/include directory and that's all you need to do.
44

5-
# Make sure users don't get warnings on a tested (3.4 to 3.20) version
5+
# Make sure users don't get warnings on a tested (3.4 to 3.21) version
66
# of CMake. For most of the policies, the new version is better (hence the change).
7-
# We don't use the 3.4...3.20 syntax because of a bug in an older MSVC's
7+
# We don't use the 3.4...3.21 syntax because of a bug in an older MSVC's
88
# built-in and modified CMake 3.11
9-
if(${CMAKE_VERSION} VERSION_LESS 3.20)
9+
if(${CMAKE_VERSION} VERSION_LESS 3.21)
1010
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
1111
else()
12-
cmake_policy(VERSION 3.20)
12+
cmake_policy(VERSION 3.21)
1313
endif()
1414

1515
set(VERSION_REGEX "#define CLI11_VERSION[ \t]+\"(.+)\"")

include/CLI/Version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define CLI11_VERSION_MAJOR 2
1212
#define CLI11_VERSION_MINOR 1
13-
#define CLI11_VERSION_PATCH 0
14-
#define CLI11_VERSION "2.1.0"
13+
#define CLI11_VERSION_PATCH 1
14+
#define CLI11_VERSION "2.1.1"
1515

1616
// [CLI11:version_hpp:end]

0 commit comments

Comments
 (0)