From a67445e8572e0cd653d8445c5880af44294d400d Mon Sep 17 00:00:00 2001 From: JustDoom <61824552+JustDoom@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:04:33 +1000 Subject: [PATCH] Maybe fix actions building --- .github/workflows/build.yml | 8 ++++++++ dependencies/CMakeLists.txt | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1cceb85..5c55789 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,10 @@ jobs: run: | sudo apt-get update && sudo apt-get install -y cmake libsfml-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libxrandr-dev libxcursor-dev + - name: Install submodules + run: | + git submodule update --init --recursive + - name: Configure and build run: | mkdir build && cd build @@ -52,6 +56,10 @@ jobs: - name: Install SFML with vcpkg run: vcpkg install sfml + + - name: Install submodules + run: | + git submodule update --init --recursive - name: Configure and build run: | diff --git a/dependencies/CMakeLists.txt b/dependencies/CMakeLists.txt index 8b7d530..7bade82 100644 --- a/dependencies/CMakeLists.txt +++ b/dependencies/CMakeLists.txt @@ -1 +1,6 @@ +if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/sfml/CMakeLists.txt") + message("${CMAKE_CURRENT_SOURCE_DIR}/sfml/CMakeLists.txt") + message(FATAL_ERROR "Please initialize submodules using:\n git submodule update --init --recursive") +endif() + add_subdirectory(sfml) \ No newline at end of file