Merge pull request #14 from sjackson0109/fix/ci-workflows-paths

fix(ci): correct OffsetFinder exe output path and remove PR path filters
pull/4062/head
Simon Jackson 1 month ago committed by GitHub
commit 8357ed1206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -109,8 +109,8 @@ jobs:
Write-Host "Submodule version: $version" Write-Host "Submodule version: $version"
foreach ($cfg in @( foreach ($cfg in @(
@{ Platform = 'x64'; ZydisCfg = 'Release MD DLL'; ZydisBin = 'ReleaseX64'; Arch = 'x64' } @{ Platform = 'x64'; SlnPlatform = 'x64'; OutDir = 'x64/Release'; ZydisCfg = 'Release MD DLL'; ZydisBin = 'ReleaseX64'; Arch = 'x64' }
@{ Platform = 'Win32'; ZydisCfg = 'Release MD DLL'; ZydisBin = 'ReleaseX86'; Arch = 'x86' } @{ Platform = 'Win32'; SlnPlatform = 'x86'; OutDir = 'Release'; ZydisCfg = 'Release MD DLL'; ZydisBin = 'ReleaseX86'; Arch = 'x86' }
)) { )) {
# Build Zydis DLL # Build Zydis DLL
msbuild src-csharp/RDPOffsetFinder/zydis/msvc/zydis/Zydis.vcxproj ` msbuild src-csharp/RDPOffsetFinder/zydis/msvc/zydis/Zydis.vcxproj `
@ -123,15 +123,17 @@ jobs:
# where zydis/ lives - vcxproj AdditionalIncludeDirectories and # where zydis/ lives - vcxproj AdditionalIncludeDirectories and
# AdditionalDependencies both use $(SolutionDir)\zydis\... and # AdditionalDependencies both use $(SolutionDir)\zydis\... and
# fail with C1083 when the vcxproj is targeted directly. # fail with C1083 when the vcxproj is targeted directly.
# NB: the solution uses x86/x64 platform names (not Win32) - use SlnPlatform.
msbuild src-csharp/RDPOffsetFinder/RDPWrapOffsetFinder.sln ` msbuild src-csharp/RDPOffsetFinder/RDPWrapOffsetFinder.sln `
/t:RDPWrapOffsetFinder ` /t:RDPWrapOffsetFinder `
/p:Configuration=Release ` /p:Configuration=Release `
/p:Platform="$($cfg.Platform)" ` /p:Platform="$($cfg.SlnPlatform)" `
/p:PlatformToolset=v143 ` /p:PlatformToolset=v143 `
/v:minimal /v:minimal
$arch = $cfg.Arch $arch = $cfg.Arch
$exeSrc = "src-csharp/RDPOffsetFinder/RDPWrapOffsetFinder/$($cfg.Platform)/Release/RDPWrapOffsetFinder.exe" # Win32 OutDir = Release\ (no platform prefix); x64 OutDir = x64\Release\
$exeSrc = "src-csharp/RDPOffsetFinder/$($cfg.OutDir)/RDPWrapOffsetFinder.exe"
$dllSrc = "src-csharp/RDPOffsetFinder/zydis/msvc/bin/$($cfg.ZydisBin)/Zydis.dll" $dllSrc = "src-csharp/RDPOffsetFinder/zydis/msvc/bin/$($cfg.ZydisBin)/Zydis.dll"
Copy-Item $exeSrc ".\RDPWrapOffsetFinder_$arch.exe" Copy-Item $exeSrc ".\RDPWrapOffsetFinder_$arch.exe"
Copy-Item $dllSrc ".\Zydis_$arch.dll" Copy-Item $dllSrc ".\Zydis_$arch.dll"

@ -7,8 +7,6 @@
on: on:
pull_request: pull_request:
branches: [main, master] branches: [main, master]
paths:
- 'src-x86-x64-Fusix/**'
push: push:
tags: tags:
- 'v*' - 'v*'

@ -9,8 +9,6 @@ name: Build C# Tools
on: on:
pull_request: pull_request:
branches: [main, master] branches: [main, master]
paths:
- 'src-csharp/**'
push: push:
tags: tags:
- 'v*' - 'v*'

@ -7,9 +7,6 @@ name: Build MSI Check
on: on:
pull_request: pull_request:
branches: [main, master] branches: [main, master]
paths:
- 'msi/**'
- '.github/workflows/build-msi-check.yml'
workflow_dispatch: workflow_dispatch:
env: env:

@ -7,8 +7,6 @@
on: on:
pull_request: pull_request:
branches: [main, master] branches: [main, master]
paths:
- 'src-csharp/RDPOffsetFinder/**'
push: push:
tags: tags:
- 'v*' - 'v*'
@ -28,13 +26,15 @@ jobs:
matrix: matrix:
include: include:
- platform: x64 - platform: x64
sln_platform: x64
zydis_cfg: "Release MD DLL" zydis_cfg: "Release MD DLL"
zydis_bin: ReleaseX64 zydis_bin: ReleaseX64
finder_plat: x64 out_dir: x64/Release
- platform: Win32 - platform: Win32
sln_platform: x86
zydis_cfg: "Release MD DLL" zydis_cfg: "Release MD DLL"
zydis_bin: ReleaseX86 zydis_bin: ReleaseX86
finder_plat: Win32 out_dir: Release
steps: steps:
- name: Checkout repository (with submodules) - name: Checkout repository (with submodules)
@ -55,13 +55,16 @@ jobs:
/p:PlatformToolset=v143 ` /p:PlatformToolset=v143 `
/v:minimal /v:minimal
# Build the offset finder (links against the Zydis import lib just produced) # Build via .sln so $(SolutionDir) resolves to the submodule root where
# AdditionalIncludeDirectories and AdditionalDependencies reference zydis/
# NB: the solution uses x86/x64 platform names (not Win32) - use sln_platform.
- name: Build RDPWrapOffsetFinder (${{ matrix.platform }}) - name: Build RDPWrapOffsetFinder (${{ matrix.platform }})
working-directory: src-csharp/RDPOffsetFinder working-directory: src-csharp/RDPOffsetFinder
run: | run: |
msbuild RDPWrapOffsetFinder\RDPWrapOffsetFinder.vcxproj ` msbuild RDPWrapOffsetFinder.sln `
/t:RDPWrapOffsetFinder `
/p:Configuration=Release ` /p:Configuration=Release `
/p:Platform="${{ matrix.platform }}" ` /p:Platform="${{ matrix.sln_platform }}" `
/p:PlatformToolset=v143 ` /p:PlatformToolset=v143 `
/v:minimal /v:minimal
@ -70,7 +73,8 @@ jobs:
run: | run: |
$arch = if ("${{ matrix.platform }}" -eq "Win32") { "x86" } else { "x64" } $arch = if ("${{ matrix.platform }}" -eq "Win32") { "x86" } else { "x64" }
$root = "src-csharp/RDPOffsetFinder" $root = "src-csharp/RDPOffsetFinder"
$exe = "$root/RDPWrapOffsetFinder/${{ matrix.finder_plat }}/Release/RDPWrapOffsetFinder.exe" # Win32 OutDir = Release\ (no platform prefix); x64 OutDir = x64\Release\
$exe = "$root/${{ matrix.out_dir }}/RDPWrapOffsetFinder.exe"
$dll = "$root/zydis/msvc/bin/${{ matrix.zydis_bin }}/Zydis.dll" $dll = "$root/zydis/msvc/bin/${{ matrix.zydis_bin }}/Zydis.dll"
Write-Host "Exe: $(Get-Item $exe | Select-Object -Exp Length) bytes" Write-Host "Exe: $(Get-Item $exe | Select-Object -Exp Length) bytes"

Loading…
Cancel
Save