Skip to content

Commit

Permalink
Maybe fix actions building
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Mar 27, 2024
1 parent 0954e11 commit a67445e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
5 changes: 5 additions & 0 deletions dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit a67445e

Please sign in to comment.