Skip to content

Commit

Permalink
Added project files
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn committed Jan 6, 2024
1 parent 0b0dccb commit 092137c
Show file tree
Hide file tree
Showing 281 changed files with 34,694 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug, help wanted
assignees: SmileYzn

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Paste Here the output of commands (If you have AMX Mod X Installed or others):**
- meta list
- amxx plugins
- amxx version

**Server Details (please complete the following information):**
- Slots
- Tested with bots?
- Other informations

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement, help wanted
assignees: SmileYzn

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
73 changes: 73 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Linux Build CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
container: ubuntu:18.04

steps:
- uses: actions/checkout@v3

- name: Add i386 architecture
run: dpkg --add-architecture i386

- name: Update repository
run: apt-get update

- name: Install build dependencies
run: apt-get install -qq -y wget unzip build-essential gcc-4.8-multilib g++-4.8-multilib libgcc1:i386

- name: Update alternatives
run: update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8

- name: Run build
working-directory: ./CSDM
run: make

- name: Move release file to publish
run: |
# Make Match BOT path
mkdir -p publish/addons/csdm/dlls
# Move released file to dlls
mv ./CSDM/Release/csdm_mm.so publish/addons/csdm/dlls
# Copy cstrike contents to publish dir
cp -ar cstrike/. publish
- name: Download metamod-r
run: |
# Get latest release version of metamod-r
wget --quiet https://github.com/theAsmodai/metamod-r/releases/download/1.3.0.138/metamod-bin-1.3.0.138.zip
# Unzip metamod library to metamod folder
unzip -p metamod-bin*.zip addons/metamod/metamod_i386.so > publish/addons/metamod/metamod_i386.so
- name: Download hitbox_fixer
run: |
# Get latest release version of hitbox_fixer
wget --quiet https://github.com/Garey27/hitbox_fixer/releases/download/1.1.5/hitbox_fix-bin-1.1.5.zip
# Unzip hitbox_fixer library to metamod folder
unzip -p hitbox_fix-bin*.zip addons/hitbox_fix/hitbox_fix_mm_i386.so > publish/addons/hitbox_fix/hitbox_fix_mm_i386.so
- name: Download accuracy-fix
run: |
# Get latest release version of accuracy-fix
wget --quiet https://github.com/SmileYzn/AccuracyFix/releases/download/1.0.4/accuracyfix-linux.zip
# Unzip accuracy-fix library to metamod folder
unzip -p accuracyfix-linux.zip addons/accuracyfix/dlls/accuracyfix_mm.so > publish/addons/accuracyfix/accuracyfix_mm.so
- name: Deploy artifacts
uses: actions/upload-artifact@v3
with:
name: csdm-linux
path: publish/*
128 changes: 128 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: Windows Build CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release

permissions:
contents: read

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

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

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Run Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

- name: Move release file to publish
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
# Make publish directory
mkdir publish\addons\csdm\dlls
# Move cstrike files to publish
move ${{env.SOLUTION_FILE_PATH}}\cstrike\* publish
# Move released dll to publish
move ${{env.BUILD_CONFIGURATION}}\*.dll publish\addons\csdm\dlls
- name: Download Metamod-r
run: |
# Set assets data
$assets = "https://github.com/theAsmodai/metamod-r/releases/download/1.3.0.138/metamod-bin-1.3.0.138.zip"
# Get ZIP file name
$zipName = "metamod-bin-1.3.0.138.zip"
# Download ZIP file
Invoke-WebRequest -Uri $assets -Out $zipName
# Extract ZIP File
Expand-Archive $zipName
# Get base name from ZIP file
$baseName = (Get-Item $zipName).BaseName
# DLL from path
$fromPath = ".\" + $baseName + "\addons\metamod\metamod.dll"
# DLL dest path
$DestPath = ".\publish\addons\metamod\metamod.dll"
# Copy item
Copy-Item -Path $fromPath -Destination $DestPath
- name: Download Hitbox Fixer
run: |
# Set assets data
$assets = "https://github.com/Garey27/hitbox_fixer/releases/download/1.1.5/hitbox_fix-bin-1.1.5.zip"
# Get ZIP file name
$zipName = "hitbox_fix-bin-1.1.5.zip"
# Download ZIP file
Invoke-WebRequest -Uri $assets -Out $zipName
# Extract ZIP File
Expand-Archive $zipName
# Get base name from ZIP file
$baseName = (Get-Item $zipName).BaseName
# DLL from path
$fromPath = ".\" + $baseName + "\addons\hitbox_fix\hitbox_fix_mm.dll"
# DLL dest path
$DestPath = ".\publish\addons\hitbox_fix\hitbox_fix_mm.dll"
# Copy item
Copy-Item -Path $fromPath -Destination $DestPath
- name: Download Accuracy Fix
run: |
# Set assets data
$assets = "https://github.com/SmileYzn/AccuracyFix/releases/download/1.0.4/accuracyfix-windows.zip"
# Get ZIP file name
$zipName = "accuracyfix-windows.zip"
# Download ZIP file
Invoke-WebRequest -Uri $assets -Out $zipName
# Extract ZIP File
Expand-Archive $zipName
# Get base name from ZIP file
$baseName = (Get-Item $zipName).BaseName
# DLL from path
$fromPath = ".\" + $baseName + "\addons\accuracyfix\dlls\accuracyfix_mm.dll"
# DLL dest path
$DestPath = ".\publish\addons\accuracyfix\accuracyfix_mm.dll"
# Copy item
Copy-Item -Path $fromPath -Destination $DestPath
- name: Deploy artifacts
uses: actions/upload-artifact@main
with:
name: csdm-windows
path: publish/*
25 changes: 25 additions & 0 deletions CSDM.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CSDM", "CSDM\CSDM.vcxproj", "{3976C711-E634-424E-B59A-D861B8CC1726}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3976C711-E634-424E-B59A-D861B8CC1726}.Debug|x86.ActiveCfg = Debug|Win32
{3976C711-E634-424E-B59A-D861B8CC1726}.Debug|x86.Build.0 = Debug|Win32
{3976C711-E634-424E-B59A-D861B8CC1726}.Release|x86.ActiveCfg = Release|Win32
{3976C711-E634-424E-B59A-D861B8CC1726}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0DA15EB6-D075-4F21-946A-2AC9679B66DB}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 092137c

Please sign in to comment.