Skip to content

Commit

Permalink
Merge pull request #133 from x64dbg/gh-actions
Browse files Browse the repository at this point in the history
GitHub Actions
  • Loading branch information
mrexodia authored Oct 27, 2021
2 parents 7e648fb + ea3e3c2 commit 30c956b
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 11 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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
with:
fetch-depth: 0

- name: Build
run: |
cmd /c call release.bat
- name: Get current time
uses: srfrnk/current-time@v1.1.0
id: current-time
with:
format: YYYY-MM-DD_HH-MM

- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}_${{ steps.current-time.outputs.formattedTime }}
path: Release/

- name: Compress artifacts
uses: papeloto/action-zip@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: Release/
dest: ${{ github.event.repository.name }}_${{ steps.current-time.outputs.formattedTime }}.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 }}_${{ steps.current-time.outputs.formattedTime }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions Scylla/Scylla.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
<ClInclude Include="Version.h" />
<ClInclude Include="Win32kSyscalls.h" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SCMRevGen\SCMRevGen.vcxproj">
<Project>{4cef9c8e-91c8-4148-94b1-af2a3b597762}</Project>
</ProjectReference>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<ProjectGuid>{E468DA07-48EA-40EB-A845-FA69C39D3396}</ProjectGuid>
Expand Down
9 changes: 3 additions & 6 deletions ScyllaHide.sln
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,13 @@ Global
{9EEA6D78-4E74-47B9-8746-B8754B15525D}.Release|Win32.Build.0 = Release|Win32
{9EEA6D78-4E74-47B9-8746-B8754B15525D}.Release|x64.ActiveCfg = Release|Win32
{A94B6222-ABEF-41A0-BE48-06801157AAA5}.Debug|Win32.ActiveCfg = Debug|Win32
{A94B6222-ABEF-41A0-BE48-06801157AAA5}.Debug|Win32.Build.0 = Debug|Win32
{A94B6222-ABEF-41A0-BE48-06801157AAA5}.Debug|x64.ActiveCfg = Debug|Win32
{A94B6222-ABEF-41A0-BE48-06801157AAA5}.Release|Win32.ActiveCfg = Release|Win32
{A94B6222-ABEF-41A0-BE48-06801157AAA5}.Release|Win32.Build.0 = Release|Win32
{A94B6222-ABEF-41A0-BE48-06801157AAA5}.Release|x64.ActiveCfg = Release|Win32
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|Win32.ActiveCfg = Debug|Win32
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|Win32.Build.0 = Debug|Win32
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|x64.ActiveCfg = Debug|x64
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|x64.Build.0 = Debug|x64
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|Win32.ActiveCfg = Release|Win32
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|Win32.Build.0 = Release|Win32
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|x64.ActiveCfg = Release|x64
{4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|x64.Build.0 = Release|x64
{B00C9DA1-867E-4438-9C6E-1B53AE0506B7}.Debug|Win32.ActiveCfg = Debug|Win32
{B00C9DA1-867E-4438-9C6E-1B53AE0506B7}.Debug|Win32.Build.0 = Debug|Win32
{B00C9DA1-867E-4438-9C6E-1B53AE0506B7}.Debug|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -172,4 +166,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C656F8F6-F616-40A9-9343-90FC1032D65C}
EndGlobalSection
EndGlobal
7 changes: 2 additions & 5 deletions release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ if "%MSBUILD%"=="" (
exit /b
)

if not exist 3rdparty\idasdk (
echo IDA SDK not found
exit /b
)

"%MSBUILD%" /m /property:Configuration=Release,Platform=Win32
if not %ERRORLEVEL%==0 exit /b

Expand Down Expand Up @@ -96,3 +91,5 @@ copy /y /b Release\scylla_hide.ini Release\IDA\
copy /y /b Release\HookLibraryx64.dll Release\IDA\
copy /y /b Release\HookLibraryx86.dll Release\IDA\
move Release\ScyllaHideIDAServer* Release\IDA\

exit 0

0 comments on commit 30c956b

Please sign in to comment.