Skip to content

Commit

Permalink
treat GitHub Actions CI like travis CI and merge windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored and amadio committed Aug 31, 2021
1 parent 93ac07e commit 6d91dc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ jobs:
build-windows:
runs-on: ${{ matrix.os }}
env:
subset: ${{ matrix.subset }}
name: build-${{ matrix.os }}-${{ matrix.subset }}
name: build-${{ matrix.os }}
strategy:
fail-fast: false
matrix:
subset: [sse, avx]
os: [windows-2016] # , windows-2019
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ endif()
# determine the (short) hostname of the build machine
################################################################################
set(travis_os $ENV{TRAVIS_OS_NAME})
set(github_ci $ENV{GITHUB_ACTIONS})
if(travis_os)
set(CTEST_SITE "Travis CI")
elseif(appveyor)
set(CTEST_SITE "AppVeyor CI")
elseif(github_ci)
set(CTEST_SITE "GitHub Actions")
else()
execute_process(COMMAND hostname -s RESULT_VARIABLE ok OUTPUT_VARIABLE CTEST_SITE ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT ok EQUAL 0)
Expand Down Expand Up @@ -434,7 +437,7 @@ macro(go)
unset(CTEST_NOTES_FILES) # less clutter in ctest -V output
if(res EQUAL 0)
set(test_results 0)
if(travis_os)
if(travis_os OR github_ci)
set(CTEST_BUILD_COMMAND "${CMAKE_MAKE_PROGRAM} ${MAKE_ARGS}")
ctest_build(
BUILD "${CTEST_BINARY_DIRECTORY}"
Expand Down

0 comments on commit 6d91dc9

Please sign in to comment.