Skip to content

Commit e09d860

Browse files
committed
fix: обновлен workflow сборки zlib для Windows
1 parent 1ad2c3a commit e09d860

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/build-zlib.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
run: |
2121
if (-not (Test-Path "3rdparty/zlib/CMakeLists.txt")) {
2222
Remove-Item -Recurse -Force "3rdparty/zlib" -ErrorAction SilentlyContinue
23-
git clone --depth 1 --branch v1.3.1 https://github.com/madler/zlib.git 3rdparty/zlib
23+
New-Item -ItemType Directory -Force "3rdparty/zlib" | Out-Null
24+
git clone --depth 1 --branch v1.3.1 https://github.com/madler/zlib.git tmp_zlib
25+
Copy-Item -Path "tmp_zlib/*" -Destination "3rdparty/zlib/" -Recurse
26+
Remove-Item -Recurse -Force "tmp_zlib"
2427
}
2528
2629
- name: Setup MSVC
@@ -35,13 +38,14 @@ jobs:
3538
-DV8_READER_BUILD_TESTS=OFF `
3639
-DCMAKE_BUILD_TYPE=Release
3740
38-
- name: Build zlibstatic
41+
- name: Build project
3942
run: |
40-
cmake --build build --target zlibstatic --config Release
43+
cmake --build build --config Release -j
4144
4245
- name: Verify zlibstatic.lib
4346
run: |
44-
if (Test-Path "build/lib/zlibstatic.lib") {
47+
Get-ChildItem -Recurse "build" -Filter "*.lib" | Select-Object FullName
48+
if ((Test-Path "build/lib/zlibstatic.lib") -or (Test-Path "build/zlib_build/Release/zlibstatic.lib") -or (Test-Path "build/Release/zlibstatic.lib")) {
4549
Write-Host "SUCCESS: zlibstatic.lib created"
4650
ls build/lib/
4751
} else {
@@ -53,7 +57,10 @@ jobs:
5357
uses: actions/upload-artifact@v4
5458
with:
5559
name: zlibstatic-windows
56-
path: build/lib/zlibstatic.lib
60+
path: |
61+
build/lib/zlibstatic.lib
62+
build/zlib_build/Release/zlibstatic.lib
63+
build/Release/zlibstatic.lib
5764
retention-days: 7
5865

5966
build-linux:

0 commit comments

Comments
 (0)