Skip to content

Commit 2ed7e40

Browse files
author
Oleh Kulykov
committed
1722262608
1 parent c0ca708 commit 2ed7e40

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/cmake-cygwin.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,21 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434

35+
- name: Register CygWin path
36+
run: |
37+
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
38+
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
39+
40+
3541
- name: Set reusable strings
3642
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
3743
id: strings
38-
shell: bash
44+
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
3945
run: |
4046
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
4147
4248
- name: Configure CMake
49+
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
4350
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
4451
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
4552
run: >
@@ -50,10 +57,12 @@ jobs:
5057
-S ${{ github.workspace }}
5158
5259
- name: Build
60+
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
5361
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
5462
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
5563

5664
- name: Test
65+
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
5766
working-directory: ${{ steps.strings.outputs.build-output-dir }}
5867
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
5968
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail

0 commit comments

Comments
 (0)