Skip to content

Commit

Permalink
Update packaging folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
albertziegenhagel committed Aug 3, 2024
1 parent 9927dda commit aded38f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 43 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ jobs:

- name: Configure VSDbg Engine Extension (x64)
run: |
mkdir build-x64
cd build-x64
mkdir build/x64
cd build/x64
cmake "${{ github.workspace }}\vsdbg-engine-extension" `
-G Ninja `
-DCMAKE_BUILD_TYPE=Debug `
-DCMAKE_PREFIX_PATH="${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDebugEng.17.0.2012801\build\native;${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDConfigTool.17.0.2012801\build" `
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension"
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension" `
-DCHILDDEBUGGER_INSTALL_PDB=ON
- name: Build & Install VSDbg Engine Extension (x64)
run: |
cd build-x64
cd build/x64
ninja install
- uses: TheMrMilchmann/setup-msvc-dev@v2
Expand All @@ -60,17 +61,18 @@ jobs:

- name: Configure VSDbg Engine Extension (x86)
run: |
mkdir build-x86
cd build-x86
mkdir build/x86
cd build/x86
cmake "${{ github.workspace }}\vsdbg-engine-extension" `
-G Ninja `
-DCMAKE_BUILD_TYPE=Debug `
-DCMAKE_PREFIX_PATH="${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDebugEng.17.0.2012801\build\native;${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDConfigTool.17.0.2012801\build" `
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension"
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension" `
-DCHILDDEBUGGER_INSTALL_PDB=ON
- name: Build & Install VSDbg Engine Extension (x86)
run: |
cd build-x86
cd build/x86
ninja install
- name: Compile VSCode Test Sources
Expand Down
46 changes: 24 additions & 22 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,18 @@ jobs:

- name: Configure VSDbg Engine Extension (x64)
run: |
mkdir build-x64
cd build-x64
mkdir build/x64
cd build/x64
cmake "${{ github.workspace }}\vsdbg-engine-extension" `
-G Ninja `
-DCMAKE_BUILD_TYPE=Debug `
-DCMAKE_PREFIX_PATH="${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDebugEng.17.0.2012801\build\native;${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDConfigTool.17.0.2012801\build" `
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension"
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension" `
-DCHILDDEBUGGER_INSTALL_PDB=ON
- name: Build & Install VSDbg Engine Extension (x64)
run: |
cd build-x64
cd build/x64
ninja install
- uses: TheMrMilchmann/setup-msvc-dev@v2
Expand All @@ -66,25 +67,26 @@ jobs:

- name: Configure VSDbg Engine Extension (x86)
run: |
mkdir build-x86
cd build-x86
mkdir build/x86
cd build/x86
cmake "${{ github.workspace }}\vsdbg-engine-extension" `
-G Ninja `
-DCMAKE_BUILD_TYPE=Debug `
-DCMAKE_PREFIX_PATH="${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDebugEng.17.0.2012801\build\native;${{ github.workspace }}\Microsoft.VSSDK.Debugger.VSDConfigTool.17.0.2012801\build" `
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension"
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\vsdbg-engine-extension" `
-DCHILDDEBUGGER_INSTALL_PDB=ON
- name: Build & Install VSDbg Engine Extension (x86)
run: |
cd build-x86
cd build/x86
ninja install
- name: Add build info
run: |
"ref: ${{ github.ref_name }}`n" + `
"commit: ${{ github.sha }}`n" + `
"date: $(Get-Date -UFormat '%FT%T%Z' -AsUTC)" | Out-File -Path "${{ github.workspace }}/build-x64/bin/info.txt"
"date: $(Get-Date -UFormat '%FT%T%Z' -AsUTC)" | Out-File -Path "${{ github.workspace }}/vsdbg-engine-extension/bin/info.txt"
- name: Package VSIX
run: |
vsce package --target win32-x64 --pre-release
Expand All @@ -101,24 +103,24 @@ jobs:
with:
name: childdebugger-win32-x64-tests
path: |
${{ github.workspace }}/build-x64/tests/bin/caller.exe
${{ github.workspace }}/build-x64/tests/bin/caller.pdb
${{ github.workspace }}/build-x64/tests/bin/callee.exe
${{ github.workspace }}/build-x64/tests/bin/callee.pdb
${{ github.workspace }}/build-x86/tests/bin/caller.exe
${{ github.workspace }}/build-x86/tests/bin/caller.pdb
${{ github.workspace }}/build-x86/tests/bin/callee.exe
${{ github.workspace }}/build-x86/tests/bin/callee.pdb
${{ github.workspace }}/build-x64/bin/info.txt
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x64/caller.exe
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x64/caller.pdb
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x64/callee.exe
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x64/callee.pdb
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x86/caller.exe
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x86/caller.pdb
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x86/callee.exe
${{ github.workspace }}/vsdbg-engine-extension/bin/tests/x86/callee.pdb
${{ github.workspace }}/vsdbg-engine-extension/bin/info.txt
- name: Upload debug symbols
uses: actions/upload-artifact@v3
with:
name: childdebugger-win32-x64-debug-symbols
path: |
${{ github.workspace }}/build-x64/bin/ChildDebugger.pdb
${{ github.workspace }}/build-x86/bin/ChildDebugger.pdb
${{ github.workspace }}/build-x64/bin/info.txt
${{ github.workspace }}/vsdbg-engine-extension/bin/x64/ChildDebugger.pdb
${{ github.workspace }}/vsdbg-engine-extension/bin/x86/ChildDebugger.pdb
${{ github.workspace }}/vsdbg-engine-extension/bin/info.txt
deploy-head:
name: "Deploy head"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_modules
.vscode-test/
*.vsix
vsdbg-engine-extension/bin/
build-*/
build/
16 changes: 6 additions & 10 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@

!dist/*.js

!vsdbg-engine-extension/bin/x86/*.dll
!vsdbg-engine-extension/bin/x86/*.pdb
!vsdbg-engine-extension/bin/x64/*.dll
!vsdbg-engine-extension/bin/x64/*.pdb
!vsdbg-engine-extension/bin/arm/*.dll
!vsdbg-engine-extension/bin/arm/*.pdb
!vsdbg-engine-extension/bin/arm64/*.dll
!vsdbg-engine-extension/bin/arm64/*.pdb
!vsdbg-engine-extension/bin/*.vsdconfig
!vsdbg-engine-extension/info.txt
!vsdbg-engine-extension/bin/x86/ChildDebugger.dll
!vsdbg-engine-extension/bin/x64/ChildDebugger.dll
!vsdbg-engine-extension/bin/arm/ChildDebugger.dll
!vsdbg-engine-extension/bin/arm64/ChildDebugger.dll
!vsdbg-engine-extension/bin/ChildDebugger.vsdconfig
!vsdbg-engine-extension/bin/info.txt
4 changes: 2 additions & 2 deletions src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ function testArchitecture(callerPath: string, calleePath: string, arch: string)
}

suite('Auto attach x64', () => {
const testExeDirX64 = path.join(__dirname, "..", "..", "..", "build-x64", "tests", "bin");
const testExeDirX64 = path.join(__dirname, "..", "..", "..", "vsdbg-engine-extension", "bin", "tests", "x64");

const callerPathX64 = path.join(testExeDirX64, "caller.exe");
const calleePathX64 = path.join(testExeDirX64, "callee.exe");
Expand All @@ -572,7 +572,7 @@ suite('Auto attach x64', () => {
});

suite('Auto attach x86', () => {
const testExeDirX86 = path.join(__dirname, "..", "..", "..", "build-x86", "tests", "bin");
const testExeDirX86 = path.join(__dirname, "..", "..", "..", "vsdbg-engine-extension", "bin", "tests", "x86");

const callerPathX86 = path.join(testExeDirX86, "caller.exe");
const calleePathX86 = path.join(testExeDirX86, "callee.exe");
Expand Down

0 comments on commit aded38f

Please sign in to comment.