diff --git a/.github/linux_build.sh b/.github/linux_build.sh index 09c553a..f4eb477 100644 --- a/.github/linux_build.sh +++ b/.github/linux_build.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -euo pipefail # Create build directory and enter it mkdir bin diff --git a/.github/macos_build.sh b/.github/macos_build.sh index 09c553a..f4eb477 100644 --- a/.github/macos_build.sh +++ b/.github/macos_build.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -euo pipefail # Create build directory and enter it mkdir bin diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d456294..1d7df2c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -37,6 +37,7 @@ jobs: # cd ../.. - name: Build YYCC run: | + chmod +x ./.github/linux_build.sh ./.github/linux_build.sh - name: Upload Built Artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b82cd5b..715b390 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -33,6 +33,7 @@ jobs: # cd ../.. - name: Build YYCC run: | + chmod +x ./.github/macos_build.sh ./.github/macos_build.sh - name: Upload Built Artifact uses: actions/upload-artifact@v4 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fdb980f..ea950b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -145,9 +145,10 @@ PUBLIC $<$:YYCC_OS_MACOS> $<$:YYCC_OS_MACOS> # We brutally think iOS as macOS. # Compiler macro + $<$:YYCC_CC_MSVC> $<$:YYCC_CC_GCC> $<$:YYCC_CC_CLANG> - $<$:YYCC_CC_MSVC> + $<$:YYCC_CC_CLANG> # We brutally think AppleClang is Clang. # Endian macro $<$:YYCC_ENDIAN_LITTLE> $<$:YYCC_ENDIAN_BIG> diff --git a/src/yycc/carton/termcolor.hpp b/src/yycc/carton/termcolor.hpp index 624a302..e7252e7 100644 --- a/src/yycc/carton/termcolor.hpp +++ b/src/yycc/carton/termcolor.hpp @@ -1,4 +1,5 @@ #pragma once +#include #include #include #include