Skip to content

Commit

Permalink
Fix compiler matrix versions (#707)
Browse files Browse the repository at this point in the history
* Fix compiler matrix versions

* change compiler version

* remove gcc4.8

* enable gcc-4.8

* Change code to c++11

* Change code back to c++11

* Remove commented code

* Remove commented code

* change matrix value

* change clang version

* revert clang version
  • Loading branch information
alfred2g authored Apr 11, 2024
1 parent 1fff97b commit e2dad9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version:
compiler:
- clang-3
- clang-6
- clang-8
Expand Down
7 changes: 3 additions & 4 deletions samples/secure_tunneling/secure_tunnel/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using namespace Aws::Crt;
using namespace Aws::Iotsecuretunneling;
using namespace Aws::Crt::Io;
using namespace std::chrono_literals;

void logMessage(std::shared_ptr<Message> message)
{
Expand Down Expand Up @@ -352,7 +351,7 @@ int main(int argc, char *argv[])
*/
while (keepRunning)
{
std::this_thread::sleep_for(2000ms);
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
if (localProxyMode == AWS_SECURE_TUNNELING_SOURCE_MODE)
{
uint16_t messageCount = static_cast<uint16_t>(cmdData.input_count);
Expand Down Expand Up @@ -389,7 +388,7 @@ int main(int argc, char *argv[])
connectionId = 2;
secureTunnel->SendConnectionStart(m_serviceId.value(), connectionId);

std::this_thread::sleep_for(2000ms);
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
}
else
{
Expand All @@ -399,7 +398,7 @@ int main(int argc, char *argv[])
}
}

std::this_thread::sleep_for(3000ms);
std::this_thread::sleep_for(std::chrono::milliseconds(3000));

fprintf(stdout, "Closing Connection\n");
// Set the Secure Tunnel Client to desire a stopped state
Expand Down
2 changes: 1 addition & 1 deletion samples/secure_tunneling/tunnel_notification/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int main(int argc, char *argv[])

while (1)
{
std::this_thread::sleep_for(500ms);
std::this_thread::sleep_for(std::chrono::milliseconds(500));
continue;
}
}

0 comments on commit e2dad9b

Please sign in to comment.