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 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: