New build CI

This commit is contained in:
acidicoala
2025-10-03 21:34:20 +05:00
parent ac9c1a3fcc
commit 509b70c0b0
7 changed files with 26 additions and 26 deletions

10
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
name: 🏗️ Build
on: push
jobs:
build:
uses: acidicoala/KoalaBox/.github/workflows/build.yml@e75b11891faaaa51d859c546c8e330fbb7fccb9a
with:
module: '[ "SmokeAPI" ]'
os: '[ "Windows", "Linux" ]'
bitness: '[ 32, 64 ]'

View File

@@ -1,18 +0,0 @@
name: Continuous Integration
on: push
jobs:
ci:
name: CI
uses: acidicoala/KoalaBox/.github/workflows/build-and-package.yml@a2838977f0b6a2933814e301e0a69ad53fdc6bce
permissions:
contents: write
with:
arch: '[ 32, 64 ]'
config: Release
modules: '[ "SmokeAPI" ]'
zip_command: >
zip -j $ZIP_NAME
artifacts/*/*.dll
res/SmokeAPI.config.json
res/README.txt

View File

@@ -7,6 +7,7 @@
<w>dlmopen</w>
<w>dlopen</w>
<w>dlsym</w>
<w>dynsym</w>
<w>endfor</w>
<w>indicies</w>
<w>inlinentd</w>

View File

@@ -125,9 +125,7 @@ namespace {
}
void init_lib_monitor() {
#if defined(KB_WIN) || defined(KB_64)
kb::lib_monitor::init_listener({{STEAMCLIENT_DLL, on_steamclient_loaded}});
#endif
}
std::optional<AppId_t> get_app_id_from_env() noexcept {

View File

@@ -2,11 +2,6 @@
#include "smoke_api/types.hpp"
// IMPORTANT: DLL_EXPORT is hardcoded in windows_exports_generator.cpp & linux_exports_generator.cpp,
// so any name changes here must be reflected there as well.
#define DLL_EXPORT(TYPE) extern "C" [[maybe_unused]] __declspec(dllexport) TYPE __cdecl
namespace smoke_api {
void init(void* self_module_handle);
void shutdown();

View File

@@ -42,6 +42,7 @@
* will store the 1st actual argument to the function, so we
* have to omit it from the function signature.
*/
#ifdef KB_WIN
#ifdef KB_64
#define PARAMS(...) const void* RCX __VA_OPT__(,) __VA_ARGS__
#define ARGS(...) RCX __VA_OPT__(,) __VA_ARGS__
@@ -53,6 +54,19 @@
#define THIS ECX
#define DECLARE_ARGS() void* ECX = nullptr; const void* EDX = nullptr;
#endif
#elifdef KB_LINUX
#ifdef KB_64
#define PARAMS(...) const void* $RDI __VA_OPT__(,) __VA_ARGS__
#define ARGS(...) $RDI __VA_OPT__(,) __VA_ARGS__
#define THIS $RDI
#define DECLARE_ARGS() void* $RDI = nullptr;
#else
#define PARAMS(...) const void* $ARG1 __VA_OPT__(,) __VA_ARGS__
#define ARGS(...) $ARG1 __VA_OPT__(,) __VA_ARGS__
#define THIS $ARG1
#define DECLARE_ARGS() void* $ARG1 = nullptr;
#endif
#endif
using AppId_t = uint32_t;
using HSteamPipe = uint32_t;