Skip to content

Commit 32863a1

Browse files
committed
Upgrade CI and fix satisfy matcher
1 parent 384040c commit 32863a1

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
compiler: [native, llvm-18, gcc-14]
20-
os: [ubuntu-latest, windows-latest, macos-13, macos-15]
19+
compiler: [native, llvm-20, gcc-14]
20+
os: [ubuntu-latest, windows-latest, macos-14, macos-15]
2121
exclude:
2222
- os: windows-latest
2323
compiler: gcc-14
24-
- os: macos-13
24+
- os: macos-14
2525
compiler: native # AppleClang is too old
2626

2727
steps:
@@ -33,17 +33,17 @@ jobs:
3333

3434
- name: Install Clang
3535
run: |
36-
brew install llvm@18
37-
brew link --force --overwrite llvm@18
38-
echo "CC=$(brew --prefix llvm@18)/bin/clang" >> $GITHUB_ENV
39-
echo "CXX=$(brew --prefix llvm@18)/bin/clang++" >> $GITHUB_ENV
40-
if: ${{ matrix.compiler == 'llvm-18' && (matrix.os == 'macos-13' || matrix.os == 'macos-15') }}
36+
brew install llvm@20
37+
brew link --force --overwrite llvm@20
38+
echo "CC=$(brew --prefix llvm@20)/bin/clang" >> $GITHUB_ENV
39+
echo "CXX=$(brew --prefix llvm@20)/bin/clang++" >> $GITHUB_ENV
40+
if: ${{ matrix.compiler == 'llvm-20' && (matrix.os == 'macos-14' || matrix.os == 'macos-15') }}
4141

4242
- name: Use LLVM and Clang
4343
run: |
44-
echo "CC=clang-18" >> $GITHUB_ENV
45-
echo "CXX=clang++-18" >> $GITHUB_ENV
46-
if: ${{ matrix.compiler == 'llvm-18' && (matrix.os != 'macos-13' && matrix.os != 'macos-15') }}
44+
echo "CC=clang-20" >> $GITHUB_ENV
45+
echo "CXX=clang++-20" >> $GITHUB_ENV
46+
if: ${{ matrix.compiler == 'llvm-20' && (matrix.os != 'macos-14' && matrix.os != 'macos-15') }}
4747

4848
- name: Use GCC
4949
run: |
@@ -53,11 +53,11 @@ jobs:
5353

5454
- name: Configure
5555
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES
56-
if: ${{ matrix.compiler != 'llvm-18' || matrix.os != 'windows-latest' }}
56+
if: ${{ matrix.compiler != 'llvm-20' || matrix.os != 'windows-latest' }}
5757

5858
- name: Configure ClangCL
5959
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES -G "Visual Studio 17 2022" -T ClangCL
60-
if: ${{ matrix.compiler == 'llvm-18' && matrix.os == 'windows-latest' }}
60+
if: ${{ matrix.compiler == 'llvm-20' && matrix.os == 'windows-latest' }}
6161

6262
- name: Build
6363
run: cmake --build build --config Release

include/matchers/satisfy.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ class Satisfy : public MatcherBase<A, bool> //, BeHelpers<Satisfy<A>>
3333

3434
template <typename A>
3535
std::string Satisfy<A>::failure_message() {
36-
return std::format("expected {} to evaluate to true", MatcherBase<A, bool>::actual());
36+
return std::format("expected {} to evaluate to true", Pretty::to_word(MatcherBase<A, bool>::actual()));
3737
}
3838

3939
template <typename A>
4040
std::string Satisfy<A>::failure_message_when_negated() {
41-
return std::format("expected {} to evaluate to false", MatcherBase<A, bool>::actual());
41+
return std::format("expected {} to evaluate to false", Pretty::to_word(MatcherBase<A, bool>::actual()));
4242
}
4343

4444
template <typename A>

0 commit comments

Comments
 (0)