Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:

- name: Set Variables
run: |
# dependencies are always supposed to be built shared, so we set the BUILD_SHARED_LIBS to OFF
echo "build_shared_libs=OFF" >> "$GITHUB_ENV"

if [[ '${{ matrix.library_type }}' == 'static' ]]; then
echo "build_shared_libs=OFF" >> "$GITHUB_ENV"
echo "ecaludp_library_type=STATIC" >> "$GITHUB_ENV"
echo "package_postfix=static" >> "$GITHUB_ENV"
elif [[ '${{ matrix.library_type }}' == 'shared' ]]; then
echo "build_shared_libs=ON" >> "$GITHUB_ENV"
echo "ecaludp_library_type=SHARED" >> "$GITHUB_ENV"
echo "package_postfix=shared" >> "$GITHUB_ENV"
elif [[ '${{ matrix.library_type }}' == 'object' ]]; then
echo "build_shared_libs=OFF" >> "$GITHUB_ENV"
echo "ecaludp_library_type=OBJECT" >> "$GITHUB_ENV"
echo "package_postfix=object" >> "$GITHUB_ENV"
fi
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
INSTALL_PREFIX: _install
PROJECT_NAME: ecaludp
VS_TOOLSET: v141
VS_NAME: vs2017
VS_TOOLSET: v142
VS_NAME: vs2019

jobs:
build-windows:
Expand All @@ -31,6 +31,9 @@ jobs:

- name: Set Variables
run: |
# dependencies are always supposed to be built shared, so we set the BUILD_SHARED_LIBS to OFF
echo "build_shared_libs=OFF" >> "$Env:GITHUB_ENV"

if ( '${{ matrix.library_type }}' -eq 'static' )
{
echo "ecaludp_library_type=STATIC" >> "$Env:GITHUB_ENV"
Expand Down Expand Up @@ -82,6 +85,7 @@ jobs:
-DECALUDP_USE_BUILTIN_GTEST=ON ^
-DECALUDP_LIBRARY_TYPE=${{env.ecaludp_library_type}} ^
-DECALUDP_ENABLE_NPCAP=${{ matrix.npcap_enabled }} ^
-DBUILD_SHARED_LIBS=${{ env.build_shared_libs }} ^
-DCMAKE_INSTALL_PREFIX=${{env.INSTALL_PREFIX}}

- name: Build (Release)
Expand Down