Skip to content

Commit

Permalink
first ci attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan1024 committed Jul 10, 2024
1 parent 9c63fb7 commit f9417c6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 9 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: C/C++ CI

on:
[push]

jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1.3

- name: Build
run: |
msbuild msvc/crossauth.sln -p:Configuration=Release /t:Build /p:Platform=Win32
- name: Deploy
uses: actions/upload-artifact@v3.1.1
with:
name: win32
path: msvc\Release\crossauth.dll

linux:
name: 'Linux'
runs-on: ubuntu-latest
container: s1lentq/linux86buildtools:latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build
run: |
make
- name: Deploy
uses: actions/upload-artifact@v3.1.1
id: upload-job
with:
name: linux32
path: Release/crossauth_mm_i486.so
18 changes: 9 additions & 9 deletions meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ enginefuncs_t *g_pengfuncsTable;

plugin_info_t Plugin_info =
{
META_INTERFACE_VERSION, // ifvers
"CrossAuth", // name
"0.1", // version
__DATE__, // date
"jonatan1024", // author
"http://", // url
"XAUTH", // logtag
PT_CHANGELEVEL, // (when) loadable
PT_ANYTIME, // (when) unloadable
META_INTERFACE_VERSION, // ifvers
"CrossAuth", // name
"0.1", // version
__DATE__, // date
"jonatan1024", // author
"https://github.com/jonatan1024/CrossAuth/", // url
"XAUTH", // logtag
PT_CHANGELEVEL, // (when) loadable
PT_ANYTIME, // (when) unloadable
};

C_DLLEXPORT int Meta_Query(char *interfaceVersion, plugin_info_t **plinfo, mutil_funcs_t *pMetaUtilFuncs)
Expand Down

0 comments on commit f9417c6

Please sign in to comment.