Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion rawterm/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading