From b315741b3cf9db83e8dcee3f837c3cbee819e975 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 Apr 2021 07:50:40 -0700 Subject: [PATCH 1/2] Add speech synthesis support --- include/fmt/os.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/fmt/os.h b/include/fmt/os.h index 680ada4cbb34..3127b9b049ea 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -200,6 +200,11 @@ FMT_API void report_windows_error(int error_code, string_view message) FMT_NOEXCEPT; #endif // _WIN32 +template > +void say(const S& format_str, Args&&... args) { + std::system(format("say \"{}\"", format(format_str, args...)).c_str()); +} + // A buffered file. class buffered_file { private: From 382fa4193b4cbb2926584b09f8902483d78a889c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 Apr 2021 08:24:55 -0700 Subject: [PATCH 2/2] Install gcc 8 --- .github/workflows/linux.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a18687ac79fb..7e7218e7d2a0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - cxx: [g++-4.8, g++-8, g++-10, clang++-9] + cxx: [g++-4.8, g++-10, clang++-9] build_type: [Debug, Release] std: [11] os: [ubuntu-18.04] @@ -17,6 +17,7 @@ jobs: os: ubuntu-18.04 - cxx: g++-8 std: 14 + install: sudo apt install g++-8 os: ubuntu-18.04 - cxx: g++-10 std: 17