Skip to content

Commit

Permalink
Merge pull request #601 from novelrt/bugfix/fix-nightly-builds-42024
Browse files Browse the repository at this point in the history
Fix spdlog issue and numerous GHActions deprecation warnings
  • Loading branch information
RubyNova authored May 21, 2024
2 parents abbc1f9 + acd8c98 commit 2e3668e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache Vulkan SDK (macOS)
if: "contains(matrix.os, 'macos')"
id: cache-vulkan-macOS
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: $GITHUB_WORKSPACE/VulkanSDK
key: ${{ runner.os }}-vulkansdk-${{ matrix.vulkanVersion }}-${{ hashFiles('**/mvk_vulkan.h') }}
Expand Down Expand Up @@ -78,9 +78,9 @@ jobs:
- name: Upload NovelRT test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Test Results (${{ matrix.os }})
name: Test Results (${{ matrix.os }}-${{ matrix.configuration }})
path: ./**/test-results.xml

Publish:
Expand All @@ -94,7 +94,7 @@ jobs:

steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts

Expand All @@ -114,7 +114,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Generate Documentation
run: |
Expand All @@ -129,7 +129,7 @@ jobs:
steps:
- name: Checkout Code
id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Check Formatting
id: formatting
Expand All @@ -146,7 +146,7 @@ jobs:
run: scripts/ci-checkdiff.sh

- name: Upload Patch
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: clang-format-patch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create documentation branch
run: git checkout -b gh-pages
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ If you wish to attempt to build a basic visual novel with the existing C++ API,
The dependencies that are handled by CMake that do not need to be manually installed are as follows:

- Doxygen 1.8.17 (building docs)
- fmt 10.2.1
- GLFW 3.3.7
- glm 0.9.9.9
- gtest/gmock 1.11.0
Expand All @@ -46,7 +47,7 @@ The dependencies that are handled by CMake that do not need to be manually insta
- Microsoft GSL 4.0.0
- OneTBB 2021.5.0
- OpenAL 1.21.1
- spdlog 1.10.0
- spdlog 1.13.0

### Build instructions

Expand Down
10 changes: 7 additions & 3 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ thirdparty_module(FLAC
URL_HASH SHA256=8ff0607e75a322dd7cd6ec48f4f225471404ae2730d0ea945127b1355155e737
OVERRIDE_FIND_PACKAGE
)
thirdparty_module(fmt
URL https://github.com/fmtlib/fmt/releases/download/10.2.1/fmt-10.2.1.zip
URL_HASH SHA512=1cf0e3dd09c7d87e0890b8743559159d3be2a8f33c135516962d17c4eeb7b00659e6acd74518bd5566ee4e83ddaba155fecb4c229f90cd258b3b832e72ad82cd
)
thirdparty_module(glfw3
URL https://github.com/glfw/glfw/archive/refs/tags/3.3.7.zip
URL_HASH SHA512=0ee020ddbbed783b5f0d271ee0a98b37fe489b633e0a8407821f12b2bcfc3b80645751076192b5224bfe1d26d6092c27af9a9bcd7953a419dcec0182e3716341
Expand Down Expand Up @@ -71,8 +75,8 @@ thirdparty_module(SndFile
URL_HASH SHA512=7e650af94068277246e4ccaf3b5dc20d0f93d2a2e0ecdf0f24f0be79196f879c21ec692ad48d39454f22dd01d9a4864d21458daa8d7b8f5ea4568c9551b345c1
)
thirdparty_module(spdlog
URL https://github.com/gabime/spdlog/archive/refs/tags/v1.10.0.zip
URL_HASH SHA512=9f1c778482446f52fb6e35f752226715412011f608bdcbfc87be5ae4a246d6733179a910fce09c2609e4dc1ba50664a6b0c3421749a7a12d8648dcf2b61c0b99
URL https://github.com/gabime/spdlog/archive/refs/tags/v1.13.0.zip
URL_HASH SHA512=851febf19949006a17ead8b6392f12ae81e626926268829478d4d0d28a1dfe7682ef57a6c4f151031cf4cc60f1486cf8453999ee7ce40a1f0d3f545c4d7f8555
)
thirdparty_module(stduuid
URL https://github.com/mariusbancila/stduuid/archive/3afe7193facd5d674de709fccc44d5055e144d7a.zip
Expand Down Expand Up @@ -106,7 +110,7 @@ foreach(module
GTest
Opus Ogg FLAC Vorbis SndFile OpenAL
ZLIB PNG
spdlog
fmt spdlog
stduuid
TBB
VulkanMemoryAllocator)
Expand Down
6 changes: 6 additions & 0 deletions thirdparty/fmt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include(FetchContent)

FetchContent_MakeAvailable(fmt)

set_property(TARGET fmt PROPERTY POSITION_INDEPENDENT_CODE ON)

1 change: 1 addition & 0 deletions thirdparty/spdlog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)

set(SPDLOG_INSTALL ON)
set(SPDLOG_ENABLE_PCH ON)
set(SPDLOG_FMT_EXTERNAL ON)

FetchContent_MakeAvailable(spdlog)

Expand Down

0 comments on commit 2e3668e

Please sign in to comment.