Skip to content

Commit b6746aa

Browse files
committed
startswith
1 parent 79860f5 commit b6746aa

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
# the man-db trigger causes package installations to stall for several minutes at times. so just drop the package.
3333
# see https://github.com/actions/runner/issues/4030
3434
- name: Remove man-db package on ubuntu
35-
if: matrix.os == 'ubuntu-24.04'
35+
if: startsWith(matrix.os, 'ubuntu-24.04')
3636
run: |
3737
sudo apt-get update
3838
sudo apt-get remove man-db
3939
4040
- name: Install missing software on ubuntu
41-
if: matrix.os == 'ubuntu-24.04'
41+
if: startsWith(matrix.os, 'ubuntu-24.04')
4242
run: |
4343
sudo apt-get update
4444
sudo apt-get install valgrind
@@ -109,7 +109,7 @@ jobs:
109109
(cd cmake.output && ./testrunner)
110110
111111
- name: Run valgrind
112-
if: matrix.os == 'ubuntu-24.04'
112+
if: startsWith(matrix.os, 'ubuntu-24.04')
113113
run: |
114114
make clean
115115
make -j$(nproc) CXXOPTS="-O1"
@@ -118,27 +118,27 @@ jobs:
118118
VALGRIND_TOOL=memcheck ./selfcheck.sh
119119
120120
- name: Run with libstdc++ debug mode
121-
if: matrix.os == 'ubuntu-24.04' && matrix.compiler == 'g++'
121+
if: startsWith(matrix.os, 'ubuntu-24.04') && matrix.compiler == 'g++'
122122
run: |
123123
make clean
124124
make -j$(nproc) test selfcheck CXXOPTS="-Werror -g3 -D_GLIBCXX_DEBUG"
125125
126126
- name: Run with libc++ hardening mode
127-
if: matrix.os == 'ubuntu-24.04' && matrix.compiler == 'clang++'
127+
if: startsWith(matrix.os, 'ubuntu-24.04') && matrix.compiler == 'clang++'
128128
run: |
129129
make clean
130130
make -j$(nproc) test selfcheck CXXOPTS="-Werror -stdlib=libc++ -g3 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG" LDOPTS="-lc++"
131131
132132
- name: Run AddressSanitizer
133-
if: matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-26'
133+
if: startsWith(matrix.os, 'ubuntu-24.04') || startsWith(matrix.os, 'macos-26')
134134
run: |
135135
make clean
136136
make -j$(nproc) test selfcheck CXXOPTS="-Werror -O2 -g3 -fsanitize=address" LDOPTS="-fsanitize=address"
137137
env:
138138
ASAN_OPTIONS: detect_stack_use_after_return=1
139139

140140
- name: Run UndefinedBehaviorSanitizer
141-
if: matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-26'
141+
if: startsWith(matrix.os, 'ubuntu-24.04') || startsWith(matrix.os, 'macos-26')
142142
run: |
143143
make clean
144144
make -j$(nproc) test selfcheck CXXOPTS="-Werror -O2 -g3 -fsanitize=undefined -fno-sanitize=signed-integer-overflow" LDOPTS="-fsanitize=undefined -fno-sanitize=signed-integer-overflow"
@@ -147,13 +147,13 @@ jobs:
147147

148148
# TODO: requires instrumented libc++
149149
- name: Run MemorySanitizer
150-
if: false && matrix.os == 'ubuntu-24.04' && matrix.compiler == 'clang++'
150+
if: false && startsWith(matrix.os, 'ubuntu-24.04') && matrix.compiler == 'clang++'
151151
run: |
152152
make clean
153153
make -j$(nproc) test selfcheck CXXOPTS="-Werror -O2 -g3 -stdlib=libc++ -fsanitize=memory" LDOPTS="-lc++ -fsanitize=memory"
154154
155155
- name: Run callgrind
156-
if: matrix.os == 'ubuntu-24.04'
156+
if: startsWith(matrix.os, 'ubuntu-24.04')
157157
run: |
158158
wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
159159
tar xvf 1.5.1.tar.gz
@@ -213,8 +213,8 @@ jobs:
213213
rm -rf simplecpp-1.5.1
214214
215215
- uses: actions/upload-artifact@v4
216-
if: matrix.os == 'ubuntu-24.04'
216+
if: startsWith(matrix.os, 'ubuntu-24.04')
217217
with:
218-
name: Callgrind Output - ${{ matrix.compiler }}
218+
name: Callgrind Output - ${{ matrix.os }} - ${{ matrix.compiler }}
219219
path: |
220220
./callgrind.*

0 commit comments

Comments
 (0)