1
0

chore: fix workflow execution permission issue

- fix github workflow exec permission issue
- fix termcolor enum class issue on Linux
- fix compiler macro on macos
This commit is contained in:
2025-12-24 19:32:43 +08:00
parent 47bb60f0e4
commit 45f32297da
6 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
# Create build directory and enter it
mkdir bin

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
# Create build directory and enter it
mkdir bin

View File

@@ -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

View File

@@ -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

View File

@@ -145,9 +145,10 @@ PUBLIC
$<$<PLATFORM_ID:Darwin>:YYCC_OS_MACOS>
$<$<PLATFORM_ID:iOS>:YYCC_OS_MACOS> # We brutally think iOS as macOS.
# Compiler macro
$<$<CXX_COMPILER_ID:MSVC>:YYCC_CC_MSVC>
$<$<CXX_COMPILER_ID:GNU>:YYCC_CC_GCC>
$<$<CXX_COMPILER_ID:Clang>:YYCC_CC_CLANG>
$<$<CXX_COMPILER_ID:MSVC>:YYCC_CC_MSVC>
$<$<CXX_COMPILER_ID:AppleClang>:YYCC_CC_CLANG> # We brutally think AppleClang is Clang.
# Endian macro
$<$<STREQUAL:${CMAKE_CXX_BYTE_ORDER},LITTLE_ENDIAN>:YYCC_ENDIAN_LITTLE>
$<$<STREQUAL:${CMAKE_CXX_BYTE_ORDER},BIG_ENDIAN>:YYCC_ENDIAN_BIG>

View File

@@ -1,4 +1,5 @@
#pragma once
#include <cinttypes>
#include <string>
#include <string_view>
#include <iostream>