Skip to content

Commit

Permalink
Try to adapt to GitHub test
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Dec 8, 2024
1 parent d0f0073 commit a44c0d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
include:
- dependencies: "-minimal"
- dependencies: ""
options: "-DPYTHON=yes"
options: "-DPYTHON=yes -DGITHUB_TEST=yes"

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ if(NOT GAWK)
message(FATAL_ERROR "${ColorRed}gawk not found - please install it${ColorNormal}")
endif ()

if(${GITHUB_TEST})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_CONSOLE_TWEAKS")
endif()

if("${ICU_MODE}" STREQUAL "runtime")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DRUNTIME_ICU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DRUNTIME_ICU")
Expand Down
4 changes: 4 additions & 0 deletions far/src/cfg/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ int &Confirmation::ExitEffective()

static DWORD ApplyConsoleTweaks()
{
#if !defined NO_CONSOLE_TWEAKS // for GitHub test to not hang
DWORD64 tweaks = 0;
if (Opt.ExclusiveCtrlLeft)
tweaks|= EXCLUSIVE_CTRL_LEFT;
Expand All @@ -79,6 +80,9 @@ static DWORD ApplyConsoleTweaks()
if (Opt.TTYPaletteOverride)
tweaks|= CONSOLE_TTY_PALETTE_OVERRIDE;
return WINPORT(SetConsoleTweaks)(tweaks);
#else
return 0;
#endif
}

static void ApplySudoConfiguration()
Expand Down

0 comments on commit a44c0d1

Please sign in to comment.