mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Fix CQ failures.
This commit is contained in:
		
							
								
								
									
										24
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -2,8 +2,6 @@ name: Build | ||||
|  | ||||
| on: | ||||
|   create: | ||||
|     tags: | ||||
|       -v* | ||||
|   push: | ||||
|     branches: | ||||
|       - main | ||||
| @@ -28,10 +26,11 @@ jobs: | ||||
|             compiler: llvm | ||||
|             gcov_executable: "llvm-cov gcov" | ||||
|  | ||||
|           - name: MacOS clang | ||||
|             os: macos-latest | ||||
|             compiler: llvm | ||||
|             gcov_executable: "llvm-cov gcov" | ||||
|           # https://github.com/aminya/setup-cpp/issues/246 | ||||
|           #- name: MacOS clang | ||||
|             #os: macos-latest | ||||
|             #compiler: llvm | ||||
|             #gcov_executable: "llvm-cov gcov" | ||||
|  | ||||
|           - name: Windows MSVC | ||||
|             os: windows-latest | ||||
| @@ -44,7 +43,7 @@ jobs: | ||||
|         id: cpu-cores | ||||
|  | ||||
|       - name: "Checkout repository" | ||||
|         uses: actions/checkout@v2 | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: "Setup Cpp" | ||||
|         uses: aminya/setup-cpp@v1 | ||||
| @@ -79,11 +78,16 @@ jobs: | ||||
|           cmake | ||||
|           --build ./build | ||||
|  | ||||
|       - name: Unix - Test and coverage | ||||
|       - name: Unix - Test | ||||
|         if: runner.os != 'Windows' | ||||
|         working-directory: ./build | ||||
|         run: > | ||||
|           ctest -C Debug --rerun-failed --output-on-failure; | ||||
|  | ||||
|       - name: Unix - coverage | ||||
|         if: runner.os != 'Windows' | ||||
|         working-directory: ./build | ||||
|         run: > | ||||
|           gcovr | ||||
|           -j ${{env.nproc}} | ||||
|           --delete | ||||
| @@ -155,7 +159,7 @@ jobs: | ||||
|         id: cpu-cores | ||||
|  | ||||
|       - name: "Checkout repository" | ||||
|         uses: actions/checkout@v2 | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: "Install cmake" | ||||
|         uses: lukka/get-cmake@latest | ||||
| @@ -186,7 +190,7 @@ jobs: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: "Checkout repository" | ||||
|         uses: actions/checkout@v2 | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: "Install cmake" | ||||
|         uses: lukka/get-cmake@latest | ||||
|   | ||||
| @@ -46,7 +46,6 @@ | ||||
| #error Must be compiled in UNICODE mode | ||||
| #endif | ||||
| #else | ||||
| #include <bits/types/struct_timeval.h> | ||||
| #include <sys/select.h>  // for select, FD_ISSET, FD_SET, FD_ZERO, fd_set, timeval | ||||
| #include <termios.h>  // for tcsetattr, termios, tcgetattr, TCSANOW, cc_t, ECHO, ICANON, VMIN, VTIME | ||||
| #include <unistd.h>  // for STDIN_FILENO, read | ||||
| @@ -163,7 +162,7 @@ void ftxui_on_resize(int columns, int rows) { | ||||
| #else  // POSIX (Linux & Mac) | ||||
|  | ||||
| int CheckStdinReady(int usec_timeout) { | ||||
|   timeval tv = {0, usec_timeout}; | ||||
|   timeval tv = {0, usec_timeout};  // NOLINT | ||||
|   fd_set fds; | ||||
|   FD_ZERO(&fds);                                          // NOLINT | ||||
|   FD_SET(STDIN_FILENO, &fds);                             // NOLINT | ||||
|   | ||||
| @@ -69,6 +69,8 @@ std::string Color::Print(bool is_background_color) const { | ||||
|                ";" + std::to_string(blue_); | ||||
|     } | ||||
|   } | ||||
|   // NOTREACHED(); | ||||
|   return ""; | ||||
| } | ||||
|  | ||||
| /// @brief Build a transparent color. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni