Skip to content

Commit f2aa9b9

Browse files
authored
Merge pull request #43 from ClausKlein/develop
Fix some typos - various ci updates
2 parents 392a66f + b21d19f commit f2aa9b9

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
77
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
88
RUN sudo apt-get update && sudo apt-get install -y cmake
99

10-
# Install pre-commit
11-
RUN sudo apt-get install -y pipx && pipx install pre-commit
10+
# Install pre-commit and ninja
11+
RUN sudo apt-get install -y pipx && pipx install pre-commit && pipx install ninja
1212

1313
# Newer gcc/ llvm is needed to avoid ASAN Stalling
1414
# See: https://github.com/google/sanitizers/issues/1614
15-
# Minimal vesion: clang-18.1.3, gcc-13.2
15+
# Minimal version: clang-18.1.3, gcc-13.2
1616
RUN sudo apt-get install -y gcc-14

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ repos:
2020

2121
# CMake linting and formatting
2222
- repo: https://github.com/BlankSpruce/gersemi
23-
rev: 0.15.1
23+
rev: 0.20.0
2424
hooks:
2525
- id: gersemi
2626
name: CMake linting
2727

2828
# Markdown linting
2929
# Config file: .markdownlint.yaml
30-
- repo: https://github.com/igorshubovych/markdownlint-cli
31-
rev: v0.42.0
32-
hooks:
33-
- id: markdownlint
30+
# - repo: https://github.com/igorshubovych/markdownlint-cli
31+
# rev: v0.42.0
32+
# hooks:
33+
# - id: markdownlint

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3-
cmake_minimum_required(VERSION 3.28)
3+
cmake_minimum_required(VERSION 3.28...4.1)
44

55
project(
66
beman.scope
@@ -16,7 +16,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSIO
1616
set(CMAKE_CXX_SCAN_FOR_MODULES 1)
1717
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15)
1818
set(CMAKE_CXX_SCAN_FOR_MODULES 1)
19-
elseif()
19+
else()
2020
set(CMAKE_CXX_SCAN_FOR_MODULES 0)
2121
endif()
2222

@@ -116,7 +116,8 @@ if(BEMAN_SCOPE_INSTALL_CONFIG_FILE_PACKAGE)
116116
EXPORT beman.scope-targets
117117
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/beman.scope
118118
NAMESPACE beman::
119-
CXX_MODULES_DIRECTORY cxx-modules
119+
CXX_MODULES_DIRECTORY
120+
cxx-modules
120121
COMPONENT beman.scope
121122
)
122123
endif()

CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"_debug-base"
5656
],
5757
"cacheVariables": {
58-
"CMAKE_TOOLCHAIN_FILE": "cmake/appleclang-toolchain.cmake"
58+
"CMAKE_TOOLCHAIN_FILE": "cmake/llvm-toolchain.cmake"
5959
}
6060
},
6161
{
@@ -66,7 +66,7 @@
6666
"_release-base"
6767
],
6868
"cacheVariables": {
69-
"CMAKE_TOOLCHAIN_FILE": "cmake/appleclang-toolchain.cmake"
69+
"CMAKE_TOOLCHAIN_FILE": "cmake/llvm-toolchain.cmake"
7070
}
7171
},
7272
{

tests/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ FetchContent_MakeAvailable(Catch2)
1111

1212
# module tests will only compile with gcc15 or clang20 and above
1313
if(CMAKE_CXX_SCAN_FOR_MODULES)
14-
set(ALL_TESTNAMES scope_success scope_exit scope_fail unique_resource module)
14+
set(ALL_TESTNAMES
15+
scope_success
16+
scope_exit
17+
scope_fail
18+
unique_resource
19+
module
20+
)
1521
else()
1622
set(ALL_TESTNAMES scope_success scope_exit scope_fail unique_resource)
1723
endif()

0 commit comments

Comments
 (0)