Skip to content

Commit 42873db

Browse files
committed
ci: Paste CI from BadAPI.
1 parent 6aa3c81 commit 42873db

3 files changed

Lines changed: 16 additions & 40 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,9 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
ci_mingw:
7-
runs-on: ubuntu-latest
8-
container: ghcr.io/tupoyemenu/yimmenu:latest
9-
name: CI MinGW
10-
steps:
11-
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
12-
13-
- uses: actions/checkout@v4
14-
15-
- name: Check CMake version
16-
run: cmake --version
17-
18-
- name: Generate CMake project
19-
run: cmake -DVERSION=1.3.4 -DCMAKE_BUILD_TYPE:STRING=Release -S. -Bbuild -DCROSSCOMPILE:BOOL=TRUE -DUSE_GCC:BOOL=TRUE -G Ninja
20-
21-
- name: Build 64bit release DLL
22-
run: cmake --build build --config Release
23-
24-
- name: Rename DLL to libBigBaseV2-dev-{GITHUB_SHA}.dll
25-
run: mv libBigBaseV2.dll libBigBaseV2-dev-${{github.sha}}.dll
26-
working-directory: build/
27-
28-
- name: Upload Artifact
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: binary-MinGW
32-
path: build/libBigBaseV2-dev-*.dll
33-
34-
ci_msvc:
6+
ci:
357
runs-on: windows-latest
36-
name: CI MSVC
8+
name: CI
379
steps:
3810
- uses: actions/checkout@v4
3911

@@ -44,17 +16,22 @@ jobs:
4416
uses: microsoft/setup-msbuild@v1
4517

4618
- name: Generate CMake project
47-
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release
19+
run: cmake -S. -Bbuild -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo
4820

4921
- name: Build 64bit release DLL
50-
run: cmake --build build --config Release --target ALL_BUILD
22+
run: cmake --build build --config RelWithDebInfo
5123

52-
- name: Rename DLL to BigBaseV2-dev-{GITHUB_SHA}.dll
53-
run: ren BigBaseV2.dll BigBaseV2-dev-${{github.sha}}.dll
54-
working-directory: build/Release/
24+
- name: Rename DLL to YimLuaAPI-dev-{GITHUB_SHA}.dll
25+
run: ren YimLuaAPI.dll YimLuaAPI-dev-${{github.sha}}.dll
26+
working-directory: build/
5527

56-
- name: Upload Artifact
28+
- name: Upload Artifact (dll)
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: binary
32+
path: build/YimLuaAPI-dev-*.dll
33+
- name: Upload Artifact (pdb)
5734
uses: actions/upload-artifact@v4
5835
with:
59-
name: binary-MSVC
60-
path: build/Release/BigBaseV2-dev-*.dll
36+
name: pdb
37+
path: build/YimLuaAPI.pdb

src/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
179179
LOG(INFO) << "Notification Service reset.";
180180
LOG(INFO) << "Services uninitialized.";
181181

182-
183182
hooking_instance.reset();
184183
LOG(INFO) << "Hooking uninitialized.";
185184

src/services/notifications/notification.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace big
2020
NotificationType m_type;
2121

2222
std::chrono::high_resolution_clock::duration m_lifetime;
23-
std::chrono::steady_clock::time_point m_destroy_time;
23+
std::chrono::high_resolution_clock::time_point m_destroy_time;
2424

2525
ImVec4 m_color;
2626
std::size_t m_counter;

0 commit comments

Comments
 (0)