@@ -53,11 +53,13 @@ jobs:
5353 - uses : actions/checkout@master
5454 - uses : actions/setup-python@master
5555 - run : echo '::add-matcher::.github/problem-matchers/gcc.json'
56- if : matrix.os == 'macos-13' || matrix.os == 'ubuntu-22.04'
56+ if : startsWith( matrix.os, 'macos-') || startsWith( matrix.os, 'ubuntu-')
5757 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
58- if : matrix.os == 'windows-2022'
58+ if : startsWith( matrix.os, 'windows-')
5959
6060 - run : pip install pipx # only for macos amd64
61+ if : startsWith(matrix.os, 'macos-')
62+
6163 - uses : pypa/cibuildwheel@v2.16.2
6264 with :
6365 output-dir : dist
@@ -86,11 +88,13 @@ jobs:
8688 - uses : actions/checkout@master
8789 - uses : actions/setup-python@master
8890 - run : echo '::add-matcher::.github/problem-matchers/gcc.json'
89- if : matrix.os == 'macos-13' || matrix.os == 'ubuntu-22.04'
91+ if : startsWith( matrix.os, 'macos-') || startsWith( matrix.os, 'ubuntu-')
9092 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
91- if : matrix.os == 'windows-2022'
93+ if : startsWith( matrix.os, 'windows-')
9294
9395 - run : pip install pipx
96+ if : startsWith(matrix.os, 'macos-')
97+
9498 - uses : pypa/cibuildwheel@v2.16.2
9599 with :
96100 output-dir : dist
@@ -119,12 +123,14 @@ jobs:
119123 - uses : actions/checkout@master
120124 - uses : actions/setup-python@master
121125 - run : echo '::add-matcher::.github/problem-matchers/gcc.json'
122- if : matrix.os == 'macos-13' || matrix.os == 'ubuntu-22.04'
126+ if : startsWith( matrix.os, 'macos-') || startsWith( matrix.os, 'ubuntu-')
123127 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
124- if : matrix.os == 'windows-2022'
128+ if : startsWith( matrix.os, 'windows-')
125129
126- - run : pip install pipx
127- - uses : pypa/cibuildwheel@v2.16.2
130+ - run : pip install pipx # only for macos amd64
131+ if : startsWith(matrix.os, 'macos-')
132+
133+ - uses : pypa/cibuildwheel@v2.16.2
128134 with :
129135 output-dir : dist
130136 env :
0 commit comments