Skip to content

Commit

Permalink
Merge pull request #64 from mrexodia/gh-actions
Browse files Browse the repository at this point in the history
Build TitanHide with GitHub Actions
  • Loading branch information
mrexodia authored Oct 27, 2021
2 parents 2d32af3 + 3ef0002 commit a20f607
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 18 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Visual Studio

on: [push, pull_request]

jobs:
build:
# Skip building pull requests from the same repository
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Build
run: |
msbuild.exe ${{ github.event.repository.name }}.sln /m /verbosity:minimal /t:Rebuild /p:Configuration=Release /p:Platform=x64
msbuild.exe ${{ github.event.repository.name }}.sln /m /verbosity:minimal /t:Rebuild /p:Configuration=Release /p:Platform=Win32
./release.bat
- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: bin/

- name: Compress artifacts
uses: papeloto/action-zip@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: bin/
dest: ${{ github.event.repository.name }}-${{ github.sha }}.zip

- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }}
files: ${{ github.event.repository.name }}-${{ github.sha }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions TitanHide/TitanHide.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
</Version>
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
</Link>
<DriverSign>
<FileDigestAlgorithm>SHA1</FileDigestAlgorithm>
</DriverSign>
<PostBuildEvent>
<Command>rmdir /s /q $(OutDir)TitanHide</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand All @@ -117,6 +123,12 @@
</Version>
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
</Link>
<DriverSign>
<FileDigestAlgorithm>SHA1</FileDigestAlgorithm>
</DriverSign>
<PostBuildEvent>
<Command>rmdir /s /q $(OutDir)TitanHide</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand All @@ -133,6 +145,12 @@
</Version>
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
</Link>
<DriverSign>
<FileDigestAlgorithm>SHA1</FileDigestAlgorithm>
</DriverSign>
<PostBuildEvent>
<Command>rmdir /s /q $(OutDir)TitanHide</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
Expand All @@ -148,6 +166,12 @@
</Version>
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
</Link>
<DriverSign>
<FileDigestAlgorithm>SHA1</FileDigestAlgorithm>
</DriverSign>
<PostBuildEvent>
<Command>rmdir /s /q $(OutDir)TitanHide</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<FilesToPackage Include="$(TargetPath)" />
Expand Down
3 changes: 3 additions & 0 deletions TitanHide_OllyDbg/TitanHide_OllyDbg.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<ProjectGuid>{225655CC-89D6-43C5-89A0-4A6986CDD552}</ProjectGuid>
<RootNamespace>TitanHide_OllyDbg</RootNamespace>
<ProjectName>TitanHideOlly</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -51,9 +52,11 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)$(Configuration)\plugins\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)$(Configuration)\plugins\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down
5 changes: 5 additions & 0 deletions TitanHide_TitanEngine/TitanHide_TitanEngine.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ProjectGuid>{0B9927CD-94E5-4815-855A-348B10635407}</ProjectGuid>
<RootNamespace>TitanHide_TitanEngine</RootNamespace>
<ProjectName>TitanHideTE</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -71,15 +72,19 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)$(Configuration)\plugins\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)$(Configuration)\plugins\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\plugins\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\plugins\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down
13 changes: 5 additions & 8 deletions TitanHide_x64dbg/TitanHide_x64dbg.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ProjectGuid>{176822C9-3CF8-41A9-81AB-8BBD3E3E2A32}</ProjectGuid>
<RootNamespace>TitanHide_x64dbg</RootNamespace>
<ProjectName>TitanHide_x64dbg</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
Expand Down Expand Up @@ -73,22 +74,22 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetExt>.dp32</TargetExt>
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<OutDir>$(SolutionDir)$(Configuration)\plugins\</OutDir>
<TargetName>TitanHide</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetExt>.dp32</TargetExt>
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<OutDir>$(SolutionDir)$(Configuration)\plugins\</OutDir>
<TargetName>TitanHide</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetExt>.dp64</TargetExt>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\plugins\</OutDir>
<TargetName>TitanHide</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetExt>.dp64</TargetExt>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\plugins\</OutDir>
<TargetName>TitanHide</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -107,7 +108,6 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<SubSystem>Windows</SubSystem>
<ProgramDatabaseFile>$(OutDir)$(TargetName)_x64dbg.pdb</ProgramDatabaseFile>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
Expand All @@ -131,7 +131,6 @@
<OptimizeReferences>true</OptimizeReferences>
<SubSystem>Windows</SubSystem>
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
<ProgramDatabaseFile>$(OutDir)$(TargetName)_x64dbg.pdb</ProgramDatabaseFile>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
Expand All @@ -150,7 +149,6 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<SubSystem>Windows</SubSystem>
<ProgramDatabaseFile>$(OutDir)$(TargetName)x.pdb</ProgramDatabaseFile>
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
Expand All @@ -173,7 +171,6 @@
<OptimizeReferences>true</OptimizeReferences>
<SubSystem>Windows</SubSystem>
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
<ProgramDatabaseFile>$(OutDir)$(TargetName)x.pdb</ProgramDatabaseFile>
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
Expand Down
14 changes: 4 additions & 10 deletions release.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
@echo off
rmdir /S /Q bin
mkdir bin\x32\plugins
mkdir bin\x64\plugins
mkdir bin\x32
mkdir bin\x64

copy Win7Release\*.* bin\x32\
copy Release\*.exe bin\x32\
copy Release\*.dll bin\x32\plugins\
copy Release\TitanHide.dp32 bin\x32\plugins\
copy x64\Win7Release\*.* bin\x64\
copy x64\Release\*.exe bin\x64\
copy x64\Release\*.dll bin\x64\plugins\
copy x64\Release\TitanHide.dp64 bin\x64\plugins\
xcopy /s /q Release\* bin\x32\
xcopy /s /q x64\Release\* bin\x64\

0 comments on commit a20f607

Please sign in to comment.