Changeset - r28246:1a1aea5b33dc
[Not reviewed]
master
0 2 0
Loïc Guilloux - 6 months ago 2023-12-06 12:30:47
glx22@users.noreply.github.com
Add: [CI] Test grf generation (#11543)
2 files changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
.github/workflows/ci-build.yml
Show inline comments
 
@@ -93,6 +93,7 @@ jobs:
 
        - name: GCC - Dedicated
 
          compiler: gcc
 
          cxxcompiler: g++
 
          libraries: grfcodec
 
          extra-cmake-parameters: -DOPTION_DEDICATED=ON -DCMAKE_CXX_FLAGS_INIT="-DRANDOM_DEBUG" -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
 
          # Compile without SDL / SDL2, as that should compile fine too.
 

	
 
@@ -170,6 +171,9 @@ jobs:
 
        cd build
 
        ctest -j $(nproc) --timeout 120
 

	
 
        # Check no tracked files have been modified
 
        git diff --exit-code
 

	
 
  macos:
 
    strategy:
 
      fail-fast: false
cmake/scripts/CreateGRF.cmake
Show inline comments
 
@@ -21,6 +21,9 @@ if(NOT GRF_BINARY_FILE)
 
    message(FATAL_ERROR "Script needs GRF_BINARY_FILE defined")
 
endif()
 

	
 
# Remove the existing output so failures never go unnoticed
 
file(REMOVE ${GRF_BINARY_FILE} ${GRF_BINARY_FILE}.hash)
 

	
 
get_filename_component(GRF_SOURCE_FOLDER_NAME "${GRF_SOURCE_FOLDER}" NAME)
 

	
 
file(WRITE sprites/${GRF_SOURCE_FOLDER_NAME}.nfo "")
0 comments (0 inline, 0 general)