From aa18a7e812c12f98d98908212a18c1d5e0085e91 Mon Sep 17 00:00:00 2001 From: ttibsi Date: Tue, 13 Jan 2026 20:46:43 +0000 Subject: [PATCH 1/2] resolve warnings when compiling iris with gcc --- rawterm/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rawterm/text.cpp b/rawterm/text.cpp index 4adc438..6cc4eb6 100644 --- a/rawterm/text.cpp +++ b/rawterm/text.cpp @@ -56,7 +56,7 @@ namespace rawterm { std::regex ansi_escape_code("\x1b\\[[0-9;]*[A-Za-z]"); std::smatch match; int visible_index = 0; - unsigned int pos = 0; + std::size_t pos = 0; while (pos < str.length()) { // Check if there's an ANSI escape code at the current position From e41ea97c6d447da59e1b5ddb9712be435c32be4f Mon Sep 17 00:00:00 2001 From: ttibsi Date: Tue, 13 Jan 2026 20:49:52 +0000 Subject: [PATCH 2/2] specify compilers in CI --- .github/workflows/main.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bf753f7..f218a8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,5 @@ +# TODO: When ubuntu-26.04 is valid on github, use gcc as the default compiler +# and remove the extra clang installs for anything but clang_unit_tests name: main on: pull_request: @@ -14,8 +16,10 @@ jobs: run-build: true build-dir: build generator: Ninja + env: + CXX: /usr/bin/clang++ - uses: pre-commit/action@v3.0.0 - unit_tests: + clang_unit_tests: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -26,4 +30,19 @@ jobs: build-dir: build options: RUN_TESTS=true generator: Ninja + env: + CXX: /usr/bin/clang++ + - run: RAWTERM_DEBUG=1 ./build/tests/test_exe + gcc_unit_tests: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - uses: threeal/cmake-action@v1.3.0 + with: + run-build: true + build-dir: build + options: RUN_TESTS=true + generator: Ninja + env: + CXX: /usr/bin/g++ - run: RAWTERM_DEBUG=1 ./build/tests/test_exe