1 parent
67fba6c7e2
commit
f9a3d8dbf1
1 file changed
+2
-6
@@ -88,9 +88,6 @@ jobs:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
env:
|
|
||||||
RUSTFLAGS: -C target-feature=+crt-static
|
|
||||||
VCPKGRS_DISABLE: '1'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
@@ -125,9 +122,8 @@ jobs:
|
|||||||
$dist = Join-Path $env:RUNNER_TEMP ('release-windows-' + [guid]::NewGuid())
|
$dist = Join-Path $env:RUNNER_TEMP ('release-windows-' + [guid]::NewGuid())
|
||||||
$env:CARGO_TARGET_DIR = Join-Path $env:RUNNER_TEMP ('build-windows-' + [guid]::NewGuid())
|
$env:CARGO_TARGET_DIR = Join-Path $env:RUNNER_TEMP ('build-windows-' + [guid]::NewGuid())
|
||||||
New-Item -ItemType Directory -Path $dist | Out-Null
|
New-Item -ItemType Directory -Path $dist | Out-Null
|
||||||
cargo build --release --target x86_64-pc-windows-msvc --features vendored-lua,curl/static-curl
|
cargo build --release --features vendored-lua
|
||||||
$binary = Join-Path $env:CARGO_TARGET_DIR 'x86_64-pc-windows-msvc\release\rusty-path-of-building.exe'
|
$binary = Join-Path $env:CARGO_TARGET_DIR 'release\rusty-path-of-building.exe'
|
||||||
& $binary --version
|
|
||||||
$imports = & dumpbin.exe /DEPENDENTS $binary
|
$imports = & dumpbin.exe /DEPENDENTS $binary
|
||||||
$dlls = @($imports | ForEach-Object { if ($_ -match '^\s+([\w.-]+\.dll)\s*$') { $Matches[1].ToLowerInvariant() } })
|
$dlls = @($imports | ForEach-Object { if ($_ -match '^\s+([\w.-]+\.dll)\s*$') { $Matches[1].ToLowerInvariant() } })
|
||||||
if ($dlls.Count -eq 0) { throw 'Could not inspect PE imports' }
|
if ($dlls.Count -eq 0) { throw 'Could not inspect PE imports' }
|
||||||
|
|||||||
Reference in new issue
Block a user