Include TLS builds in artifact uploads on Linux and macOS

This commit is contained in:
Turiiya 2024-06-13 15:36:14 +02:00
parent 0ae019b055
commit e8e4220b46
2 changed files with 15 additions and 0 deletions

View File

@ -71,6 +71,12 @@ jobs:
- name: Build Release Target
if: ${{ !cancelled() }}
run: make CC="$CC"
- name: Build TLS Debug Target
if: matrix.arch == 'x64'
run: make CC="$CC" WEBUI_USE_TLS=1 debug
- name: Build TLS Release Target
if: matrix.arch == 'x64'
run: make CC="$CC" WEBUI_USE_TLS=1
- name: Build examples
if: matrix.arch == 'x64'
run: |

View File

@ -34,6 +34,7 @@ jobs:
matrix:
cc: [clang]
arch: [x64, arm64]
fail-fast: false
env:
ARTIFACT: webui-macos-${{ matrix.cc }}-${{ matrix.arch }}
steps:
@ -43,11 +44,19 @@ jobs:
path: bridge/webui_bridge.h
key: ${{ runner.os }}-${{ github.sha }}-bridge
fail-on-cache-miss: true
- name: Setup OpenSSL
run: |
echo "OPENSSL_CFLAGS=$(brew --cellar)/openssl@1.1/1.1.1w/include/" >> $GITHUB_ENV
echo "OPENSSL_LDFLAGS=$(brew --cellar)/openssl@1.1/1.1.1w/lib/" >> $GITHUB_ENV
- name: Build Debug Target
run: make ARCH_TARGET=${{ matrix.arch }} debug
- name: Build Release Target
if: ${{ !cancelled() }}
run: make ARCH_TARGET=${{ matrix.arch }}
- name: Build TLS Debug Target
run: make WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="$OPENSSL_CFLAGS" WEBUI_TLS_LIB="$OPENSSL_LDFLAGS" debug
- name: Build TLS Release Target
run: make WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="$OPENSSL_CFLAGS" WEBUI_TLS_LIB="$OPENSSL_LDFLAGS"
- name: Build examples
run: |
examples_base_dir=$(pwd)/examples/C