5 Commits
Author SHA1 Message Date
ShiftyX1 70aa850999 fix: add macOS runner check to workflow and remove macOS build step from release
Build / Build (push) Successful in 9m26s
Build and Release / prepare (push) Successful in 0s
MSVC Build / build-windows (windows-latest) (push) Has been cancelled
Build and Release / build_linux (push) Successful in 10m4s
Build and Release / build_windows (push) Failing after 13s
Build and Release / publish_release (push) Has been skipped
2025-12-09 00:08:14 +03:00
ShiftyX1 b1837571cc fix: update CMake installation process and add wget for dependency management
MSVC Build / build-windows (windows-latest) (push) Has been cancelled
Build / Build (push) Has been cancelled
Build and Release / prepare (push) Successful in 1s
Build and Release / build_macos (push) Failing after 12s
Build and Release / build_windows (push) Failing after 11s
Build and Release / publish_release (push) Has been skipped
Build and Release / build_linux (push) Successful in 10m2s
2025-12-08 23:52:11 +03:00
ShiftyX1 51ff1868ac fix: replace copy_directory_if_different with copy_directory in test CMakeLists
Build and Release / prepare (push) Successful in 1s
Build and Release / build_linux (push) Successful in 10m25s
Build and Release / build_macos (push) Failing after 12s
Build and Release / build_windows (push) Failing after 12s
Build and Release / publish_release (push) Has been skipped
2025-12-08 23:49:58 +03:00
ShiftyX1 5507e17402 fix: replace copy_directory_if_different with copy_directory
Build and Release / prepare (push) Successful in 0s
Build / Build (push) Has been cancelled
Build and Release / build_linux (push) Failing after 9m9s
Build and Release / build_macos (push) Failing after 5s
Build and Release / build_windows (push) Failing after 5s
Build and Release / publish_release (push) Has been skipped
MSVC Build / build-windows (windows-latest) (push) Has been cancelled
- copy_directory_if_different doesn't exist in CMake 3.22
- Use standard copy_directory command instead
2025-12-08 20:52:57 +03:00
ShiftyX1 b68e5567b8 fix: create OpenAL::OpenAL target alias for Linux
Build / Build (push) Successful in 9m28s
Build and Release / prepare (push) Successful in 1s
Build and Release / build_linux (push) Failing after 8m58s
Build and Release / build_macos (push) Failing after 11s
Build and Release / build_windows (push) Failing after 12s
Build and Release / publish_release (push) Has been skipped
MSVC Build / build-windows (windows-latest) (push) Has been cancelled
- FindOpenAL on Linux creates OPENAL_LIBRARY/OPENAL_INCLUDE_DIR
- But code expects OpenAL::OpenAL target
- Add compatibility layer to create proper target
2025-12-08 20:25:59 +03:00
11 changed files with 35 additions and 17 deletions
+6 -1
View File
@@ -31,7 +31,12 @@ jobs:
sudo apt-get update
sudo apt-get install -y build-essential libglfw3-dev libglfw3 libglew-dev libglew2.2 \
libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev \
libcurl4-openssl-dev libgtest-dev cmake squashfs-tools valgrind
libcurl4-openssl-dev libgtest-dev squashfs-tools valgrind wget
# Install CMake >= 3.26
wget https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh
chmod +x cmake-3.27.9-linux-x86_64.sh
sudo ./cmake-3.27.9-linux-x86_64.sh --skip-license --prefix=/usr/local
rm cmake-3.27.9-linux-x86_64.sh
# fix luajit paths
sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua5.1.a
sudo ln -s /usr/include/luajit-2.1 /usr/include/lua
+6 -1
View File
@@ -39,7 +39,12 @@ jobs:
# make && make install INSTALL_INC=/usr/include/lua
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev libgtest-dev libcurl4-openssl-dev
sudo apt-get install -y build-essential libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev libgtest-dev libcurl4-openssl-dev wget
# Install CMake >= 3.26
wget https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh
chmod +x cmake-3.27.9-linux-x86_64.sh
sudo ./cmake-3.27.9-linux-x86_64.sh --skip-license --prefix=/usr/local
rm cmake-3.27.9-linux-x86_64.sh
# fix luajit paths
sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua-5.1.a
sudo ln -s /usr/include/luajit-2.1 /usr/include/lua
+7
View File
@@ -17,6 +17,13 @@ jobs:
runs-on: macos-latest
steps:
- name: Check if running on macOS
run: |
if [[ "$(uname)" != "Darwin" ]]; then
echo "::error::This workflow requires a real macOS runner, not Docker"
exit 1
fi
- uses: actions/checkout@v2
with:
submodules: 'true'
+1 -9
View File
@@ -25,11 +25,6 @@ jobs:
uses: ./.github/workflows/appimage.yml
with:
build_name: '${{ needs.prepare.outputs.build_name }}'
build_macos:
needs: [prepare]
uses: ./.github/workflows/macos.yml
with:
build_name: '${{ needs.prepare.outputs.build_name }}'
build_windows:
needs: [prepare]
uses: ./.github/workflows/windows-clang.yml
@@ -37,7 +32,7 @@ jobs:
build_name: '${{ needs.prepare.outputs.build_name }}'
publish_release:
runs-on: ubuntu-latest
needs: [build_linux, build_macos, build_windows]
needs: [build_linux, build_windows]
steps:
- name: Checkout Release Branch
uses: actions/checkout@v4
@@ -52,8 +47,6 @@ jobs:
mkdir release
mv ./artifacts/AppImage/VoxelCore-latest-x86_64.AppImage \
./release/voxelcore-${RELEASE_VERSION}_x86-64.AppImage
mv ./artifacts/VoxelEngineMacOs/VoxelEngineMacApp.dmg \
./release/voxelcore-${RELEASE_VERSION}_macos.dmg
(cd ./artifacts/Windows-Build && zip -r ../../release/voxelcore-${RELEASE_VERSION}_win64.zip .)
ls -la ./release
tree ./release
@@ -76,7 +69,6 @@ jobs:
### Downloads
- **Linux**: voxelcore-${{ env.RELEASE_VERSION }}_x86-64.AppImage
- **macOS**: voxelcore-${{ env.RELEASE_VERSION }}_macos.dmg
- **Windows**: voxelcore-${{ env.RELEASE_VERSION }}_win64.zip
### Installation
+1 -1
View File
@@ -42,7 +42,7 @@ target_link_options(VoxelEngine PRIVATE $<$<CXX_COMPILER_ID:GNU>:-no-pie>)
add_custom_command(
TARGET VoxelEngine
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/res $<TARGET_FILE_DIR:VoxelEngine>/res)
if(VOXELENGINE_BUILD_TESTS)
+1 -1
View File
@@ -1,6 +1,6 @@
# Documentation
Documentation for 0.31.
Documentation for 0.31.1.
> [!WARNING]
> Version is in development. Proceed to [Documentation for 0.30.](https://github.com/MihailRis/voxelcore/blob/release-0.30/doc/en/main-page.md)
+1 -1
View File
@@ -1,6 +1,6 @@
# Документация
Документация версии 0.31.
Документация версии 0.31.1.
> [!WARNING]
> Версия находится в разработке. Перейдите к [документации для 0.30.](https://github.com/MihailRis/voxelcore/blob/release-0.30/doc/ru/main-page.md)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"id": "base",
"title": "Base",
"version": "0.31",
"version": "0.31.1",
"description": "basic content package"
}
+9
View File
@@ -14,6 +14,15 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_package(OpenAL CONFIG REQUIRED)
else()
find_package(OpenAL REQUIRED)
# Create OpenAL::OpenAL alias if not exists
if(NOT TARGET OpenAL::OpenAL AND TARGET OpenAL::AL)
add_library(OpenAL::OpenAL ALIAS OpenAL::AL)
elseif(NOT TARGET OpenAL::OpenAL AND OPENAL_FOUND)
add_library(OpenAL::OpenAL INTERFACE IMPORTED)
set_target_properties(OpenAL::OpenAL PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${OPENAL_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${OPENAL_LIBRARY}")
endif()
endif()
find_package(ZLIB REQUIRED)
find_package(PNG REQUIRED)
+1 -1
View File
@@ -14,7 +14,7 @@ inline constexpr bool ENGINE_DEBUG_BUILD = false;
inline constexpr bool ENGINE_DEBUG_BUILD = true;
#endif // NDEBUG
inline const std::string ENGINE_VERSION_STRING = "0.31";
inline const std::string ENGINE_VERSION_STRING = "0.31.1";
/// @brief world regions format version
inline constexpr uint REGION_FORMAT_VERSION = 3;
+1 -1
View File
@@ -15,7 +15,7 @@ target_link_libraries(VoxelEngineTest PRIVATE VoxelEngineSrc GTest::gtest_main)
add_custom_command(
TARGET VoxelEngineTest
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/res ${CMAKE_CURRENT_BINARY_DIR}/res)
include(GoogleTest)