Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test win cpp static #17507

Closed
wants to merge 1 commit into from
Closed
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
25 changes: 15 additions & 10 deletions .github/workflows/ci-cpp-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
suffix: 'windows-win64'
generator: 'Visual Studio 17 2022'
arch: '-A x64'
- name: 'Windows x86'
os: windows-2022
triplet: x86-windows
vcpkg_dir: 'C:\vcpkg'
suffix: 'windows-win32'
generator: 'Visual Studio 17 2022'
arch: '-A Win32'
# - name: 'Windows x86'
# os: windows-2022
# triplet: x86-windows
# vcpkg_dir: 'C:\vcpkg'
# suffix: 'windows-win32'
# generator: 'Visual Studio 17 2022'
# arch: '-A Win32'

steps:
- name: checkout
Expand Down Expand Up @@ -116,21 +116,24 @@ jobs:

- name: Configure (default)
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
continue-on-error: true
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
cd pulsar-client-cpp && \
cmake \
-B ./build-0 \
-G "${{ matrix.generator }}" ${{ matrix.arch }} \
-DBUILD_PYTHON_WRAPPER=OFF -DBUILD_TESTS=OFF \
-DBUILD_PYTHON_WRAPPER=ON -DBUILD_TESTS=OFF \
-DVCPKG_TRIPLET=${{ matrix.triplet }} \
-DCMAKE_BUILD_TYPE=Release \
-DLINK_STATIC=ON \
-S .
fi

- name: Compile
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
continue-on-error: true
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
Expand All @@ -141,21 +144,23 @@ jobs:
- name: Configure (dynamic library only)
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
shell: bash
continue-on-error: true
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
cd pulsar-client-cpp && \
cmake \
-B ./build-1 \
-G "${{ matrix.generator }}" ${{ matrix.arch }} \
-DBUILD_PYTHON_WRAPPER=OFF -DBUILD_TESTS=OFF \
-DBUILD_PYTHON_WRAPPER=ON -DBUILD_TESTS=OFF \
-DVCPKG_TRIPLET=${{ matrix.triplet }} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_STATIC_LIB=OFF \
-DBUILD_STATIC_LIB=ON \
-S .
fi

- name: Compile
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
continue-on-error: true
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
Expand Down
2 changes: 2 additions & 0 deletions pulsar-client-cpp/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"zlib",
"zstd",
"log4cxx",
"python3",
"boost-python",
{
"name": "dlfcn-win32",
"platform": "windows"
Expand Down