mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed $GITHUB_WORKSPACE backslashes being escaped by bash when passed to the sh command.
This commit is contained in:
parent
c6226258db
commit
26b300f923
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -138,7 +138,8 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
if [ "${{ runner.os }}" == "Windows" ]; then
|
if [ "${{ runner.os }}" == "Windows" ]; then
|
||||||
# Make use of a test to print OpenGL vendor/renderer/version info to the console
|
# Make use of a test to print OpenGL vendor/renderer/version info to the console
|
||||||
find $GITHUB_WORKSPACE/build/bin -name test-sfml-window.exe -exec sh -c "{} --test-case=\"[Window] sf::Context\" --subcase=\"Version String\" | grep OpenGL" \;
|
# We have to convert the backslashes in $GITHUB_WORKSPACE to (forward) slashes so bash doesn't try to escape them in the sh command
|
||||||
|
find $(echo $GITHUB_WORKSPACE | sed 's/\\\\/\\//g')/build/bin -name test-sfml-window.exe -exec sh -c "{} --test-case=\"[Window] sf::Context\" --subcase=\"Version String\" | grep OpenGL" \;
|
||||||
# Run the tests
|
# Run the tests
|
||||||
cmake --build $GITHUB_WORKSPACE/build --target runtests --config ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }}
|
cmake --build $GITHUB_WORKSPACE/build --target runtests --config ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }}
|
||||||
# Coverage is already generated on Windows when running tests.
|
# Coverage is already generated on Windows when running tests.
|
||||||
|
Loading…
Reference in New Issue
Block a user