Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jan 24, 2023
1 parent 5a78e85 commit 2ee03de
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 10 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: github.repository == 'hzqst/metamod-fallguys'


steps:
- uses: hzqst/[email protected]

- name: G++ Build Environment
- name: Install build environment
run: sudo apt-get install make build-essential gcc gcc-multilib g++-multilib

- name: Build metamod-fallguys
- name: Build all
run: |
sudo chmod +777 build-all-linux.sh
./build-all-linux.sh
Expand All @@ -30,18 +29,26 @@ jobs:
working-directory: ${{env.GITHUB_WORKSPACE}}
run: rm -f build/addons/metamod/dlls/.placeholder

- name: Zipping the build directory
- name: Archive the build directory
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'metamod-fallguys-ubuntu-i386.zip'
path: 'build'
exclusions: '.placeholder'

- name: Archive the source directory
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'metamod-fallguys-ubuntu-src.zip'
path: 'metamod'

- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: metamod-fallguys-${{ github.ref }}
files: |
metamod-fallguys-ubuntu-i386.zip
metamod-fallguys-ubuntu-i386.zip
metamod-fallguys-ubuntu-src.zip
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: hzqst/[email protected]

- name: Update submodules
- name: Get submodules
working-directory: ${{env.GITHUB_WORKSPACE}}
run: git submodule update --init --recursive
shell: cmd
Expand All @@ -51,7 +51,7 @@ jobs:
run: del "build\addons\metamod\dlls\.placeholder"
shell: cmd

- name: Zipping the build directory
- name: Archive the build directory
uses: thedoctor0/zip-release@main
with:
type: 'zip'
Expand Down
8 changes: 7 additions & 1 deletion ascurl/meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */,
C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME /* now */,
PL_UNLOAD_REASON /* reason */)
{

return TRUE;
}

#ifdef PLATFORM_POSIX
C_DLLEXPORT void meta_linkdl()
{
DLOPEN("");
}
#endif
7 changes: 7 additions & 0 deletions asext/meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,10 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME /* now */,

return TRUE;
}

#ifdef PLATFORM_POSIX
C_DLLEXPORT void meta_linkdl()
{
DLOPEN("");
}
#endif
7 changes: 7 additions & 0 deletions asqcvar/meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,10 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME /* now */,
{
return TRUE;
}

#ifdef PLATFORM_POSIX
C_DLLEXPORT void meta_linkdl()
{
DLOPEN("");
}
#endif
7 changes: 7 additions & 0 deletions asusermsg/meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,10 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME /* now */,
{
return TRUE;
}

#ifdef PLATFORM_POSIX
C_DLLEXPORT void meta_linkdl()
{
DLOPEN("");
}
#endif
7 changes: 7 additions & 0 deletions fallguys/meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,10 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME /* now */,

return TRUE;
}

#ifdef PLATFORM_POSIX
C_DLLEXPORT void meta_linkdl()
{
DLOPEN("");
}
#endif
2 changes: 1 addition & 1 deletion metamod/osdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,6 @@ __inline int xxstat(char const* const _FileName, struct stat* const _Stat)
return stat(_FileName, _Stat);
#endif
}


#endif /* OSDEP_H */

0 comments on commit 2ee03de

Please sign in to comment.