Skip to content

Commit

Permalink
github actions refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthTon committed Jun 5, 2020
1 parent fbd594e commit fb44f59
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 44 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/driver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Driver
on:
pull_request:
paths:
- 'src/BlackBoneDrv/**'

jobs:
driver:
name: Build driver
strategy:
matrix:
configuration: [Win10Release, 'Win8.1 Release', 'Win8 Release', 'Win7 Release']
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build
shell: cmd
run: |
MSBuild.exe src\BlackBoneDrv\BlackBoneDrv.sln /p:Platform="x64" /p:Configuration="${{ matrix.configuration }}"
30 changes: 30 additions & 0 deletions .github/workflows/lib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Library
on:
pull_request:
paths:
- 'src/**'
- '!src/BlackBoneDrv/**'

jobs:
library:
name: Build and test library
strategy:
matrix:
platfom: [win32, x64]
configuration: [Release, Release(DLL)]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Add VSTest to PATH
uses: darenm/Setup-VSTest@v1
- name: Build
shell: cmd
run: |
MSBuild.exe BlackBone.sln /p:CI=true /p:Platform="${{ matrix.platfom }}" /p:Configuration="${{ matrix.configuration }}"
- name: Test
shell: cmd
run: |
vstest.console.exe "build/${{ matrix.platfom }}/${{ matrix.configuration }}/BlackboneTest.dll"
40 changes: 0 additions & 40 deletions .github/workflows/main.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions BlackBone.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BlackBone", "src\BlackBone\BlackBone.vcxproj", "{A2C53563-46F5-4D87-903F-3F1F2FDB2DEB}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Samples", "src\Samples\Samples.vcxproj", "{D31B07B5-C75F-4382-B07F-D95922764BD7}"
ProjectSection(ProjectDependencies) = postProject
{A2C53563-46F5-4D87-903F-3F1F2FDB2DEB} = {A2C53563-46F5-4D87-903F-3F1F2FDB2DEB}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BlackBoneTest", "src\BlackBoneTest\BlackBoneTest.vcxproj", "{15F6F215-4A5E-4B57-B0A0-90B067111285}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion src/BlackBoneDrv/Private.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ VOID InitializeDebuggerBlock()
context.ContextFlags = CONTEXT_FULL;
RtlCaptureContext( &context );

PDUMP_HEADER dumpHeader = ExAllocatePool( NonPagedPool, DUMP_BLOCK_SIZE );
PDUMP_HEADER dumpHeader = ExAllocatePoolWithTag( NonPagedPool, DUMP_BLOCK_SIZE, BB_POOL_TAG );
if (dumpHeader)
{
KeCapturePersistentThreadState( &context, NULL, 0, 0, 0, 0, 0, dumpHeader );
Expand Down

0 comments on commit fb44f59

Please sign in to comment.