From efafcd648d73c688be7506332523dc88a32e205c Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:18:30 +0200 Subject: [PATCH 01/23] Create cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/cmake-multi-platform.yml diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml new file mode 100644 index 0000000..28b5c47 --- /dev/null +++ b/.github/workflows/cmake-multi-platform.yml @@ -0,0 +1,74 @@ +# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform. +# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml +name: CMake on multiple platforms + +on: + push: + branches: [ "master", "ci" ] + pull_request: + branches: [ "master", "ci" ] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + # Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. + fail-fast: false + + # Set up a matrix to run the following 3 configurations: + # 1. + # 2. + # 3. + # + # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. + matrix: + os: [ubuntu-latest, windows-latest] + build_type: [Release] + c_compiler: [gcc, clang, cl] + include: + - os: windows-latest + c_compiler: cl + cpp_compiler: cl + - os: ubuntu-latest + c_compiler: gcc + cpp_compiler: g++ + - os: ubuntu-latest + c_compiler: clang + cpp_compiler: clang++ + exclude: + - os: windows-latest + c_compiler: gcc + - os: windows-latest + c_compiler: clang + - os: ubuntu-latest + c_compiler: cl + + steps: + - uses: actions/checkout@v4 + + - name: Set reusable strings + # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. + id: strings + shell: bash + run: | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: > + cmake -B ${{ steps.strings.outputs.build-output-dir }} + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -S ${{ github.workspace }} + + - name: Build + # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). + run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} + #- name: Test + # working-directory: ${{ steps.strings.outputs.build-output-dir }} + # # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). + # # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + # run: ctest --build-config ${{ matrix.build_type }} From 037ae60bf23c239f870f94e70bfe16afb6055acf Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:35:26 +0200 Subject: [PATCH 02/23] Update cmake-multi-platform.yml Added install_deps.sh script to job-list. --- .github/workflows/cmake-multi-platform.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 28b5c47..5a96e3b 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -54,6 +54,18 @@ jobs: run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + - name: Install dependencies + run: | + if [ "$RUNNER_OS" == "Linux" ]; then + ./$github.workspace/script/install_deps.sh + elif [ "$RUNNER_OS" == "Windows" ]; then + echo "$RUNNER_OS not yet supported for CI." + else + echo "$RUNNER_OS not supported" + exit 1 + fi + shell: bash + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type From 714aa3dc3ff3262ee773d4a9a7ad46d8b62d8cc9 Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:39:21 +0200 Subject: [PATCH 03/23] Update install_deps.sh Added ubuntu installation for dependencies. --- script/install_deps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/install_deps.sh b/script/install_deps.sh index 89a9a22..c06232a 100755 --- a/script/install_deps.sh +++ b/script/install_deps.sh @@ -4,7 +4,9 @@ source /etc/os-release case $ID in ubuntu) - echo "Ubuntu Linux TODO" + echo "Ubuntu Linux" + sudo apt update + sudo apt install -y libsdl3-dev libglew-dev libassimp-dev libfreetype-dev ;; debian) From 0a452d285904476c3f8af7685779150f807152b0 Mon Sep 17 00:00:00 2001 From: Edwin Date: Fri, 4 Jul 2025 08:41:52 +0200 Subject: [PATCH 04/23] Removed SDL, whoops --- SDL | 1 - 1 file changed, 1 deletion(-) delete mode 160000 SDL diff --git a/SDL b/SDL deleted file mode 160000 index 7c11a8c..0000000 --- a/SDL +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7c11a8cb9f66a2cac63f9a24ab2f49f6d4bf12a0 From cf4b5a5eb1ca9dc989533dc7b4e0a8b3c993621a Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:43:10 +0200 Subject: [PATCH 05/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 5a96e3b..3f58215 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -57,6 +57,7 @@ jobs: - name: Install dependencies run: | if [ "$RUNNER_OS" == "Linux" ]; then + tree -L 6 $github.workspace ./$github.workspace/script/install_deps.sh elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." From 78059b2647d801bbda060be58ec2d1b5b87837d6 Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:44:22 +0200 Subject: [PATCH 06/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 3f58215..cc5af48 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -57,6 +57,7 @@ jobs: - name: Install dependencies run: | if [ "$RUNNER_OS" == "Linux" ]; then + pwd tree -L 6 $github.workspace ./$github.workspace/script/install_deps.sh elif [ "$RUNNER_OS" == "Windows" ]; then From 96c182ab3da19aeec591028f8f32e89d8bcab00d Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:45:01 +0200 Subject: [PATCH 07/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index cc5af48..ef8c244 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -57,8 +57,7 @@ jobs: - name: Install dependencies run: | if [ "$RUNNER_OS" == "Linux" ]; then - pwd - tree -L 6 $github.workspace + tree -L 6 ./$github.workspace/script/install_deps.sh elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." From 5c21f7fb9605dc3d96c8450ce589996aa740316d Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:45:36 +0200 Subject: [PATCH 08/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index ef8c244..6156167 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -58,7 +58,7 @@ jobs: run: | if [ "$RUNNER_OS" == "Linux" ]; then tree -L 6 - ./$github.workspace/script/install_deps.sh + ./script/install_deps.sh elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." else From fd266f84d29390e435a6370764dc8efc68dbd9fc Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 08:48:15 +0200 Subject: [PATCH 09/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 6156167..b296f33 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -57,7 +57,7 @@ jobs: - name: Install dependencies run: | if [ "$RUNNER_OS" == "Linux" ]; then - tree -L 6 + apt search sdl ./script/install_deps.sh elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." From 4fa823b7491b4e8a44aebaf8122553f9585b0b84 Mon Sep 17 00:00:00 2001 From: Edwin Date: Fri, 4 Jul 2025 09:03:45 +0200 Subject: [PATCH 10/23] Changed SDL3 to clone instead via git, more cross-distro and platform independent. --- .gitignore | 1 + CMakeLists.txt | 8 ++++++++ script/install_deps.sh | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8cbb132..0e6ce1a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ CMakeCache.txt ########### [Bb]in/ [Rr]elease/ +[Vv]endor/ # clangd # ########## diff --git a/CMakeLists.txt b/CMakeLists.txt index e30070b..6810ade 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,11 @@ set(CMAKE_CXX_STANDARD 26) # Export compile_commands.json for LSPs set(CMAKE_EXPORT_COMPILE_COMMANDS 1) +# set the output directory for built objects. +# This makes sure that the dynamic library goes into the build directory automatically. +# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$") +# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$") + # Dependencies directory set(LucentDependencies ${PROJECT_SOURCE_DIR}/deps) @@ -25,6 +30,9 @@ include_directories(${OUR_SRC_DIR} ${OUR_INC_DIR}) find_package(OpenGL REQUIRED) include_directories(${OPENGL_INCLUDE_DIRS}) +# SDL3 (./script/install_deps.sh has to be run) +add_subdirectory(vendor/SDL EXCLUDE_FROM_ALL) + if(WIN32) set(WIN_DEP_INCLUDES ${LucentDependencies}/include/Windows) diff --git a/script/install_deps.sh b/script/install_deps.sh index c06232a..b190e25 100755 --- a/script/install_deps.sh +++ b/script/install_deps.sh @@ -6,7 +6,7 @@ case $ID in ubuntu) echo "Ubuntu Linux" sudo apt update - sudo apt install -y libsdl3-dev libglew-dev libassimp-dev libfreetype-dev + sudo apt install -y libglew-dev libassimp-dev libfreetype-dev ;; debian) @@ -15,7 +15,8 @@ case $ID in arch) echo "Arch Linux" - sudo pacman -S sdl3 glew assimp freetype2 + sudo pacman -S glew assimp freetype2 ;; esac +git clone https://github.com/libsdl-org/SDL.git vendor/SDL From 45cf7e67876ebc01dfb52bdac973d0db1cf72668 Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:05:08 +0200 Subject: [PATCH 11/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index b296f33..82c87ec 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -57,7 +57,6 @@ jobs: - name: Install dependencies run: | if [ "$RUNNER_OS" == "Linux" ]; then - apt search sdl ./script/install_deps.sh elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." From 5cf9b18217a289db22118da621621e5713ad323c Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:07:13 +0200 Subject: [PATCH 12/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 82c87ec..00f05b1 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -58,6 +58,7 @@ jobs: run: | if [ "$RUNNER_OS" == "Linux" ]; then ./script/install_deps.sh + sudo apt install -y xorg elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." else From a3f655a92d45bbf5e11cbe97758532facdba272d Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:09:33 +0200 Subject: [PATCH 13/23] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 00f05b1..e28c984 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -58,7 +58,7 @@ jobs: run: | if [ "$RUNNER_OS" == "Linux" ]; then ./script/install_deps.sh - sudo apt install -y xorg + sudo apt install -y libx11-dev elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." else From ee97983b15f2975345df7db0e0d97a060406501a Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:14:39 +0200 Subject: [PATCH 14/23] Update install_deps.sh --- script/install_deps.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/install_deps.sh b/script/install_deps.sh index b190e25..a683bdc 100755 --- a/script/install_deps.sh +++ b/script/install_deps.sh @@ -7,6 +7,13 @@ case $ID in echo "Ubuntu Linux" sudo apt update sudo apt install -y libglew-dev libassimp-dev libfreetype-dev + sudo apt install -y build-essential git make \ + pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev \ + libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev \ + libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxtst-dev \ + libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev \ + libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev \ + libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev libx11-dev ;; debian) From a9435db4def30c9378ff76052a9ea5a5fb6fdd12 Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:17:22 +0200 Subject: [PATCH 15/23] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6810ade..676fb24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,7 @@ elseif(UNIX) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMAKE) # Sets SDL2_INCLUDE_DIR and SDL2_LIBRARY - find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3) + # find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3) # Sets GLEW libraries and includes find_package(GLEW REQUIRED) From 45c2b512b08d521bfd6baef652efd3f194934f5f Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:22:40 +0200 Subject: [PATCH 16/23] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 676fb24..f6a2d08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1) # set the output directory for built objects. # This makes sure that the dynamic library goes into the build directory automatically. -# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$") -# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$") +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$") +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$") # Dependencies directory set(LucentDependencies ${PROJECT_SOURCE_DIR}/deps) From 3b0248ccc8ffed1cc942c51be6157dce54074b62 Mon Sep 17 00:00:00 2001 From: Edwin Date: Fri, 4 Jul 2025 09:35:44 +0200 Subject: [PATCH 17/23] Added include_directories for SDL3 even though locally it still works. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6a2d08..6bad6ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ include_directories(${OPENGL_INCLUDE_DIRS}) # SDL3 (./script/install_deps.sh has to be run) add_subdirectory(vendor/SDL EXCLUDE_FROM_ALL) +include_directories(vendor/SDL/include) if(WIN32) set(WIN_DEP_INCLUDES ${LucentDependencies}/include/Windows) From 9a6b6579bbff46796f236a7e4a5bd39e4c087772 Mon Sep 17 00:00:00 2001 From: Edwin Date: Fri, 4 Jul 2025 09:42:34 +0200 Subject: [PATCH 18/23] Added compiler output to confirm it in github actions. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bad6ae..0a57c4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5.2 FATAL_ERROR) project(Lucent) +# Compiler +message("Using compiler ${CMAKE_CXX_COMPILER_ID}") + # Enable c++26 set(CMAKE_CXX_STANDARD 26) From 3e35991a3c7cf4f319756d14bf9a2b9a944138cb Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:46:25 +0200 Subject: [PATCH 19/23] Commented windows CI paths for now. --- .github/workflows/cmake-multi-platform.yml | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index e28c984..e55e10b 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -23,26 +23,27 @@ jobs: # # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: - os: [ubuntu-latest, windows-latest] + #os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] build_type: [Release] c_compiler: [gcc, clang, cl] include: - - os: windows-latest - c_compiler: cl - cpp_compiler: cl + #- os: windows-latest + # c_compiler: cl + # cpp_compiler: cl - os: ubuntu-latest c_compiler: gcc cpp_compiler: g++ - os: ubuntu-latest c_compiler: clang cpp_compiler: clang++ - exclude: - - os: windows-latest - c_compiler: gcc - - os: windows-latest - c_compiler: clang - - os: ubuntu-latest - c_compiler: cl + #exclude: + #- os: windows-latest + # c_compiler: gcc + #- os: windows-latest + # c_compiler: clang + #- os: ubuntu-latest + # c_compiler: cl steps: - uses: actions/checkout@v4 @@ -58,9 +59,9 @@ jobs: run: | if [ "$RUNNER_OS" == "Linux" ]; then ./script/install_deps.sh - sudo apt install -y libx11-dev elif [ "$RUNNER_OS" == "Windows" ]; then echo "$RUNNER_OS not yet supported for CI." + exit 1 else echo "$RUNNER_OS not supported" exit 1 @@ -80,6 +81,7 @@ jobs: - name: Build # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} + #- name: Test # working-directory: ${{ steps.strings.outputs.build-output-dir }} # # Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). From e27c6d1c5e22a908fdd67ed094c20cbcf51c4ceb Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:49:38 +0200 Subject: [PATCH 20/23] Rename cmake-multi-platform.yml to Lucent Build.yml --- .github/workflows/{cmake-multi-platform.yml => Lucent Build.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{cmake-multi-platform.yml => Lucent Build.yml} (100%) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/Lucent Build.yml similarity index 100% rename from .github/workflows/cmake-multi-platform.yml rename to .github/workflows/Lucent Build.yml From a17d9de52653fa05137b3d6f3b2db48825089253 Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:51:15 +0200 Subject: [PATCH 21/23] Update and rename Lucent Build.yml to lucent_cross_platform_build.yml --- .../{Lucent Build.yml => lucent_cross_platform_build.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{Lucent Build.yml => lucent_cross_platform_build.yml} (99%) diff --git a/.github/workflows/Lucent Build.yml b/.github/workflows/lucent_cross_platform_build.yml similarity index 99% rename from .github/workflows/Lucent Build.yml rename to .github/workflows/lucent_cross_platform_build.yml index e55e10b..f484cea 100644 --- a/.github/workflows/Lucent Build.yml +++ b/.github/workflows/lucent_cross_platform_build.yml @@ -1,6 +1,6 @@ # This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform. # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml -name: CMake on multiple platforms +name: Lucent Build on: push: From 6ca183f42477ac8e1a1129dbc3ae3e1b45e89b6a Mon Sep 17 00:00:00 2001 From: Edwin Wallin Date: Fri, 4 Jul 2025 09:52:24 +0200 Subject: [PATCH 22/23] Whoops, no cl.exe on ubuntu.. --- .github/workflows/lucent_cross_platform_build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lucent_cross_platform_build.yml b/.github/workflows/lucent_cross_platform_build.yml index f484cea..a6f963a 100644 --- a/.github/workflows/lucent_cross_platform_build.yml +++ b/.github/workflows/lucent_cross_platform_build.yml @@ -37,13 +37,13 @@ jobs: - os: ubuntu-latest c_compiler: clang cpp_compiler: clang++ - #exclude: + exclude: #- os: windows-latest # c_compiler: gcc #- os: windows-latest # c_compiler: clang - #- os: ubuntu-latest - # c_compiler: cl + - os: ubuntu-latest + c_compiler: cl steps: - uses: actions/checkout@v4 From a5813c025ba121a5e68e1a003af733086b73af49 Mon Sep 17 00:00:00 2001 From: Edwin Date: Fri, 4 Jul 2025 09:56:07 +0200 Subject: [PATCH 23/23] Build badge in readme. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 69dff9e..e848af4 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ █████▄▄██ ████████▀ ████████▀ ██████████ ▀█ █▀ ▄████▀ ▀ ``` + +[![Lucent Build](https://github.com/Dequilla/Lucent/actions/workflows/lucent_cross_platform_build.yml/badge.svg?branch=master)](https://github.com/Dequilla/Lucent/actions/workflows/lucent_cross_platform_build.yml) + # A crossplatform game engine using OpenGL ## Contributing