Skip to content

Commit

Permalink
changing windows ci test to build client-only
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 30, 2024
1 parent a7c957e commit 9c8c0c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
release: [Release]
ssl: [ON, OFF]
client-only: [OFF]
client-only: [ON, OFF]
capnp: [ON, OFF]
exclude:
- os: windows-latest
client-only: OFF
- os: ubuntu-latest
client-only: ON
- os: macos-latest
client-only: ON

runs-on: ${{ matrix.os }}

Expand Down
6 changes: 3 additions & 3 deletions source/server/createXDRStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ std::pair<XDR*, XDR*> serverCreateXDRStream(IoData* io_data)

#if !defined(FATCLIENT) && defined(SSLAUTHENTICATION)
if (getUdaServerSSLDisabled()) {
#if defined (__APPLE__) || defined(__TIRPC__)
#if defined (__APPLE__) || defined(__TIRPC__) || defined(_WIN32)
xdrrec_create( &server_output, DB_READ_BLOCK_SIZE, DB_WRITE_BLOCK_SIZE, io_data,
reinterpret_cast<int (*)(void *, void *, int)>(server_read),
reinterpret_cast<int (*)(void *, void *, int)>(server_write));
Expand All @@ -36,7 +36,7 @@ std::pair<XDR*, XDR*> serverCreateXDRStream(IoData* io_data)
reinterpret_cast<int (*)(char *, char *, int)>(server_write));
#endif
} else {
#if defined (__APPLE__) || defined(__TIRPC__)
#if defined (__APPLE__) || defined(__TIRPC__) || defined(_WIN32)
xdrrec_create( &server_output, DB_READ_BLOCK_SIZE, DB_WRITE_BLOCK_SIZE, io_data,
reinterpret_cast<int (*)(void *, void *, int)>(readUdaServerSSL),
reinterpret_cast<int (*)(void *, void *, int)>(writeUdaServerSSL));
Expand All @@ -56,7 +56,7 @@ std::pair<XDR*, XDR*> serverCreateXDRStream(IoData* io_data)
}
#else // SSLAUTHENTICATION

#if defined (__APPLE__) || defined(__TIRPC__)
#if defined (__APPLE__) || defined(__TIRPC__) || defined(_WIN32)
xdrrec_create(&server_output, DB_READ_BLOCK_SIZE, DB_WRITE_BLOCK_SIZE, io_data,
reinterpret_cast<int (*)(void*, void*, int)>(server_read),
reinterpret_cast<int (*)(void*, void*, int)>(server_write));
Expand Down

0 comments on commit 9c8c0c1

Please sign in to comment.