Skip to content

Commit 4d4b7ff

Browse files
authored
Update build.yaml
1 parent 1c7f5b2 commit 4d4b7ff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ jobs:
133133
git checkout --force ${{ matrix.version.name }}
134134
git submodule update --init --recursive
135135
136-
- name: Configure CMake
137-
run: |
138-
if [[ "${{ matrix.config.name }}" == "windows" ]]; then
139-
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON -DPYTHON_COMMAND="python"
140-
else
141-
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON
142-
fi
136+
- name: Configure CMake (Windows)
137+
if: matrix.config.name == 'windows'
138+
run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON -DPYTHON_COMMAND="python"
139+
140+
- name: Configure CMake (Unix)
141+
if: matrix.config.name != 'windows'
142+
run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBN_ALLOW_STUBS=ON
143143

144144
- name: Build
145145
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)