Skip to content

Commit

Permalink
fix: disable warnings in CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Apr 24, 2023
1 parent db918bb commit 7838221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: "pacman --noconfirm -Syu base-devel cmake gcc git make mingw-w64 && aur-install mingw-w64-lua51"

- name: Compile
run: "mkdir build && cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain.cmake && cmake --build . --config Release"
run: "mkdir build && cd build && cmake .. -DIS_CI=1 -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain.cmake && cmake --build . --config Release"

- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "CoronaLabs.Corona.
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 20 CXX_EXTENSIONS OFF CXX_STANDARD_REQUIRED ON)

if (MINGW)
if (MINGW AND NOT IS_CI)
target_link_libraries(${PROJECT_NAME} PRIVATE -static -static-libgcc -static-libstdc++)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic -Werror -pedantic -pedantic-errors -Wno-cast-function-type -Wfatal-errors)
endif()
Expand Down

0 comments on commit 7838221

Please sign in to comment.