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