speed up v2

This commit is contained in:
phoenixbackrooms
2025-09-28 11:53:11 +03:00
committed by GitHub
parent 6fe67bce76
commit 39e1c8c086

View File

@@ -60,31 +60,40 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev sudo apt-get install -y pkg-config libssl-dev
- name: Cache vcpkg (Windows) - name: Cache vcpkg and OpenSSL (Windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: C:\vcpkg path: |
key: ${{ runner.os }}-vcpkg-openssl C:\vcpkg
C:\vcpkg\installed\x64-windows-static-md
key: ${{ runner.os }}-vcpkg-openssl-${{ hashFiles('.github/workflows/build-gurtca.yml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-vcpkg-openssl-
${{ runner.os }}-vcpkg- ${{ runner.os }}-vcpkg-
- name: Install OpenSSL (Windows) - name: Install OpenSSL (Windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: |
if (!(Test-Path "C:\vcpkg")) { if (!(Test-Path "C:\vcpkg")) {
Write-Host "Installing vcpkg..."
git clone https://github.com/Microsoft/vcpkg.git C:\vcpkg git clone https://github.com/Microsoft/vcpkg.git C:\vcpkg
cd C:\vcpkg cd C:\vcpkg
.\bootstrap-vcpkg.bat .\bootstrap-vcpkg.bat
.\vcpkg.exe integrate install .\vcpkg.exe integrate install
} }
cd C:\vcpkg
$installed = .\vcpkg.exe list | Select-String "openssl:x64-windows-static-md" # Check if OpenSSL is properly installed
if (!$installed) { $opensslInstalled = (Test-Path "C:\vcpkg\installed\x64-windows-static-md\lib\libssl.lib") -and
Write-Host "Installing OpenSSL..." (Test-Path "C:\vcpkg\installed\x64-windows-static-md\lib\libcrypto.lib") -and
.\vcpkg.exe install openssl:x64-windows-static-md (Test-Path "C:\vcpkg\installed\x64-windows-static-md\include\openssl\opensslv.h")
if ($opensslInstalled) {
Write-Host "OpenSSL already installed, skipping..."
} else { } else {
Write-Host "OpenSSL already installed: $installed" Write-Host "Installing OpenSSL..."
cd C:\vcpkg
.\vcpkg.exe install openssl:x64-windows-static-md
} }
shell: pwsh shell: pwsh
@@ -113,3 +122,4 @@ jobs:
path: artifacts/${{ matrix.platform }} path: artifacts/${{ matrix.platform }}
retention-days: 30 retention-days: 30