Skip to content

Commit

Permalink
Fixe
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed May 28, 2024
1 parent 986cfe0 commit 7409f29
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
ICE_HOME: ${{ github.workspace }}/ice

jobs:
ci:
name: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-22.04, macos-14, windows-2022]

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -37,7 +40,8 @@ jobs:
uses: ./ice/.github/actions/build
timeout-minutes: 90
with:
working_directory: ice/cpp
working_directory: ice
build_flags: srcs

- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -50,3 +54,12 @@ jobs:
run: |
export ICE_HOME=$GITHUB_WORKSPACE/ice
make
if: ${{ runner.os != 'Windows' }}

- name: Build Ice Demos on ${{ matrix.os }}
timeout-minutes: 90
working-directory: ice-demos/cpp
run: |
export ICE_HOME=$GITHUB_WORKSPACE/ice
make
if: ${{ runner.os == 'Windows' }}
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ publisher
subscriber
talk
chatserver
chatgl2client
chatpollclient

!Chat/client/
!Chat/server/
!**/Chat/client/
!**/Chat/server/

!**/msbuild/client
!**/msbuild/server
Expand Down
2 changes: 0 additions & 2 deletions cpp/Chat/server/ChatSessionI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ ChatSessionI::setCallback(optional<Chat::ChatRoomCallbackPrx> callback, const Ic
return;
}

callback->ice_ping();

Ice::Context ctx;
ctx["_fwd"] = "o";
_callback = make_shared<SessionCallbackAdapter>(
Expand Down
2 changes: 1 addition & 1 deletion cpp/Glacier2/callback/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ run(const shared_ptr<Ice::Communicator>& communicator)
if (!defaultRouter)
{
cerr << "no router configured" << endl;
return;
exit(1);
}
const Glacier2::RouterPrx router = Glacier2::RouterPrx(*communicator->getDefaultRouter());

Expand Down
2 changes: 1 addition & 1 deletion cpp/Glacier2/simpleChat/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ run(const shared_ptr<Ice::Communicator>& communicator)
if (!defaultRouter)
{
cerr << "no router configured" << endl;
return;
exit(1);
}
const Glacier2::RouterPrx router = Glacier2::RouterPrx(*communicator->getDefaultRouter());
optional<ChatSessionPrx> session;
Expand Down

0 comments on commit 7409f29

Please sign in to comment.