mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-17 17:27:54 +03:00
Windows TLS CI
This commit is contained in:
parent
93d78bf7c8
commit
911fe332c6
16
.github/workflows/windows.yml
vendored
16
.github/workflows/windows.yml
vendored
@ -21,6 +21,12 @@ jobs:
|
||||
with:
|
||||
path: bridge/webui_bridge.h
|
||||
key: ${{ runner.os }}-${{ github.sha }}-bridge
|
||||
- name: Install OpenSSL
|
||||
run: |
|
||||
choco install openssl -y
|
||||
$openssl_path = (choco info openssl -r | Select-String -Pattern "C:.*OpenSSL.*" -AllMatches).Matches[0].Value
|
||||
Write-Host "OpenSSL path: $openssl_path"
|
||||
echo "OPENSSL_PATH=$openssl_path" >> $GITHUB_ENV
|
||||
|
||||
build:
|
||||
needs: setup
|
||||
@ -32,8 +38,12 @@ jobs:
|
||||
include:
|
||||
- compiler: GCC
|
||||
make: mingw32-make
|
||||
tls_include: "${{ env.OPENSSL_PATH }}\include"
|
||||
tls_lib: "${{ env.OPENSSL_PATH }}\lib"
|
||||
- compiler: MSVC
|
||||
make: nmake
|
||||
tls_include: "${{ env.OPENSSL_PATH }}\include"
|
||||
tls_lib: "${{ env.OPENSSL_PATH }}\lib"
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -49,6 +59,10 @@ jobs:
|
||||
run: ${{ matrix.make }} debug
|
||||
- name: Build Release Target
|
||||
run: ${{ matrix.make }}
|
||||
- name: Build TLS Debug Target
|
||||
run: ${{ matrix.make }} WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="${{ matrix.tls_include }}" WEBUI_TLS_LIB="${{ matrix.tls_lib }}" debug
|
||||
- name: Build TLS Release Target
|
||||
run: ${{ matrix.make }} WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="${{ matrix.tls_include }}" WEBUI_TLS_LIB="${{ matrix.tls_lib }}"
|
||||
- name: Build examples
|
||||
run: |
|
||||
$examples_base_dir = "$(Get-Location)/examples/C/"
|
||||
@ -64,7 +78,7 @@ jobs:
|
||||
Write-Host "Failed to build '$example': $make_output"
|
||||
$exit_code = 1
|
||||
continue
|
||||
}
|
||||
}
|
||||
Write-Output $make_output
|
||||
if (!(Test-Path "main.exe") -or !(Test-Path "main-dyn.exe")) {
|
||||
Write-Host "Failed to find executable for '$example'"
|
||||
|
Loading…
Reference in New Issue
Block a user