Skip to content

Commit

Permalink
update boost to 1.84 for ubuntu and windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerZhongAWS committed Aug 14, 2024
1 parent f97f64a commit 53e5a29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ jobs:
- name: Install boost
working-directory: ${{ github.workspace }}
run: |
wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz
wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz -O /tmp/boost.tar.gz
tar xzvf /tmp/boost.tar.gz
cd boost_1_81_0
cd boost_1_84_0
./bootstrap.sh
sudo ./b2 install link=static
- name: Install protobuf
Expand Down Expand Up @@ -145,11 +145,11 @@ jobs:
$env:Path += ";C:\Program Files (x86)\zlib\bin"
- name: Install boost
run: |
Invoke-WebRequest "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.zip" -OutFile "boost_1_76_0.zip"
Expand-Archive "boost_1_76_0.zip" -Force
cd .\boost_1_76_0\boost_1_76_0\
Invoke-WebRequest "https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.zip" -OutFile "boost_1_84_0.zip"
Expand-Archive "boost_1_84_0.zip" -Force
cd .\boost_1_84_0\boost_1_84_0\
.\bootstrap.bat
.\b2 toolset=msvc-14.2 address-model=64 install define=BOOST_WINAPI_VERSION_WIN10 link=static
.\b2 toolset=msvc-14.2 address-model=64 install define=_WIN32_WINNT=0x0601 define=BOOST_WINAPI_VERSION_WIN7 link=static
- name: Install protobuf
run: |
cd \
Expand All @@ -169,7 +169,7 @@ jobs:
run: |
mkdir build
cd build
cmake -DBUILD_TESTS=OFF -DBOOST_PKG_VERSION=1.76.0 -DWIN32_WINNT=0x0A00 -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 16 2019" -A x64 ..\
cmake -DBUILD_TESTS=OFF -DBOOST_PKG_VERSION=1.84.0 -DWIN32_WINNT=0x0601 -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 16 2019" -A x64 ..\
msbuild localproxy.vcxproj -p:Configuration=Release
- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion src/TcpAdapterProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ namespace aws { namespace iot { namespace securedtunneling {
}
connection->tcp_write_buffer_.consume(connection->tcp_write_buffer_.max_size());
// this works on Linux x86_64 but causes a bus error on Darwin arm64, commenting it out
connection->socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_receive);
// connection->socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_receive);
connection->socket_.close();

connection->on_web_socket_write_buffer_drain_complete = [&, service_id, connection_id]()
Expand Down

0 comments on commit 53e5a29

Please sign in to comment.