From dcd421e299e480e789a9754ab2f689382e324530 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 13 Jul 2026 10:45:50 -0700 Subject: [PATCH 1/2] Bump workflows to Ubuntu 26.04 --- .github/workflows/checks.yml | 2 +- .github/workflows/format-code.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index fd27ca54..9347ef63 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -8,7 +8,7 @@ on: jobs: check: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index fcbfafe8..d6e2a6ad 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -7,7 +7,7 @@ on: jobs: format: name: "Format C code" - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/format') steps: - name: 'Setup SSH deploy key' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3335d5f0..c68fa43b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - os: [ubuntu-24.04, macos-15] + os: [ubuntu-26.04, macos-15] compiler: [gcc, clang] exclude: - os: macos-15 From 487212b48e07cd106abf012fc7d302c7c18e5d11 Mon Sep 17 00:00:00 2001 From: Ryan Hartlage Date: Mon, 13 Jul 2026 14:10:38 -0400 Subject: [PATCH 2/2] Format on 26.04 --- exercises/practice/grade-school/test_grade_school.c | 5 +---- .../pascals-triangle/test_pascals_triangle.c | 12 ++++-------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/exercises/practice/grade-school/test_grade_school.c b/exercises/practice/grade-school/test_grade_school.c index ccfd36ef..904653b0 100644 --- a/exercises/practice/grade-school/test_grade_school.c +++ b/exercises/practice/grade-school/test_grade_school.c @@ -8,10 +8,7 @@ { \ 1, \ { \ - (student_t) \ - { \ - 255, "DEADBEEF" \ - } \ + (student_t){ 255, "DEADBEEF" } \ } \ } diff --git a/exercises/practice/pascals-triangle/test_pascals_triangle.c b/exercises/practice/pascals-triangle/test_pascals_triangle.c index a923a690..2f346dab 100644 --- a/exercises/practice/pascals-triangle/test_pascals_triangle.c +++ b/exercises/practice/pascals-triangle/test_pascals_triangle.c @@ -65,8 +65,7 @@ static void test_two_rows(void) uint8_t expected[2][2] = { // clang-format off {1, 0}, - {1, 1} - // clang-format on + {1, 1} // clang-format on }; actual = create_triangle(2); TEST_ASSERT_TRUE(check_triangle((count = 2), expected, actual)); @@ -81,8 +80,7 @@ static void test_three_rows(void) // clang-format off {1, 0, 0}, {1, 1, 0}, - {1, 2, 1} - // clang-format on + {1, 2, 1} // clang-format on }; actual = create_triangle(3); TEST_ASSERT_TRUE(check_triangle((count = 3), expected, actual)); @@ -98,8 +96,7 @@ static void test_four_rows(void) {1, 0, 0, 0}, {1, 1, 0, 0}, {1, 2, 1, 0}, - {1, 3, 3, 1} - // clang-format on + {1, 3, 3, 1} // clang-format on }; actual = create_triangle(4); TEST_ASSERT_TRUE(check_triangle((count = 4), expected, actual)); @@ -116,8 +113,7 @@ static void test_five_rows(void) {1, 1, 0, 0, 0}, {1, 2, 1, 0, 0}, {1, 3, 3, 1, 0}, - {1, 4, 6, 4, 1} - // clang-format on + {1, 4, 6, 4, 1} // clang-format on }; actual = create_triangle(5); TEST_ASSERT_TRUE(check_triangle((count = 5), expected, actual));