This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 573df03429e89e89c3ab4bb6f42d595d0e3ba715
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Oct 12 21:49:32 2026 +0200

    ci: Remove single entry matrices and unused steps
    
    Several workflows use build matrix with only ubuntu-latest OS. This
    results in steps conditional on other OS that are never executed and
    conditions on Ubuntu that are always true. Remove those matrices and
    steps to make workflows easier to read and maintain.
    
    Note that this changes names of affected checks as OS is no longer
    appended to job name.
    
    Assisted-by: Claude:claude-opus-5-5
---
 .github/workflows/build_all_apps.yml        |  8 +-------
 .github/workflows/build_bootloader.yml      | 12 +-----------
 .github/workflows/build_bootloader_main.yml |  7 +------
 .github/workflows/build_cc_target.yml       |  3 +--
 .github/workflows/build_mtest_apps.yml      |  8 +-------
 .github/workflows/newt_test_all.yml         | 12 +-----------
 6 files changed, 6 insertions(+), 44 deletions(-)

diff --git a/.github/workflows/build_all_apps.yml 
b/.github/workflows/build_all_apps.yml
index 76237e4cb..ca46e0f01 100644
--- a/.github/workflows/build_all_apps.yml
+++ b/.github/workflows/build_all_apps.yml
@@ -35,11 +35,7 @@ permissions:
 jobs:
   targets:
     name: Build all apps
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
@@ -50,7 +46,6 @@ jobs:
           release: '15.2.Rel1'
       - name: Install Dependencies
         shell: bash
-        if: matrix.os == 'ubuntu-latest'
         run: |
              sudo apt-get update
              sudo apt-get install -y gcc-multilib
@@ -73,7 +68,6 @@ jobs:
              cd ..
       - name: Build applications
         shell: bash
-        if: matrix.os == 'ubuntu-latest'
         run: |
              cd build
              bash ../.github/test_build_apps.sh
diff --git a/.github/workflows/build_bootloader.yml 
b/.github/workflows/build_bootloader.yml
index 2e448408e..55877ccd4 100644
--- a/.github/workflows/build_bootloader.yml
+++ b/.github/workflows/build_bootloader.yml
@@ -35,11 +35,7 @@ permissions:
 jobs:
   bootloader:
     name: Build bootloader
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
@@ -49,15 +45,9 @@ jobs:
         with:
           release: '15.2.Rel1'
       - name: Install Dependencies
-        if: matrix.os == 'ubuntu-latest'
         run: |
              sudo apt-get update
              sudo apt-get install -y gcc-multilib
-      - name: Install GNU sed
-        if: matrix.os == 'macos-latest'
-        run: |
-             brew install gnu-sed
-             echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
       - name: Install newt
         run: |
              go version
diff --git a/.github/workflows/build_bootloader_main.yml 
b/.github/workflows/build_bootloader_main.yml
index 74d1fdb7d..597d9bd62 100644
--- a/.github/workflows/build_bootloader_main.yml
+++ b/.github/workflows/build_bootloader_main.yml
@@ -32,11 +32,7 @@ permissions:
 jobs:
   bootloader:
     name: Build bootloader (main)
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
@@ -46,7 +42,6 @@ jobs:
         with:
           release: '15.2.Rel1'
       - name: Install Dependencies
-        if: matrix.os == 'ubuntu-latest'
         run: |
              sudo apt-get update
              sudo apt-get install -y gcc-multilib
diff --git a/.github/workflows/build_cc_target.yml 
b/.github/workflows/build_cc_target.yml
index 4e20f3d72..ec0c9700a 100644
--- a/.github/workflows/build_cc_target.yml
+++ b/.github/workflows/build_cc_target.yml
@@ -38,9 +38,8 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [ubuntu-latest]
         gcc: ['15.2.Rel1', '14.2.Rel1', '13.2.Rel1', '12.2.Rel1', '11.3.Rel1', 
'10.3-2021.10', '9-2020-q2', '8-2019-q3']
-    runs-on: ${{ matrix.os }}
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
diff --git a/.github/workflows/build_mtest_apps.yml 
b/.github/workflows/build_mtest_apps.yml
index 375462578..6ea94df19 100644
--- a/.github/workflows/build_mtest_apps.yml
+++ b/.github/workflows/build_mtest_apps.yml
@@ -35,11 +35,7 @@ permissions:
 jobs:
   targets:
     name: Build all apps
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-latest]
-    runs-on: '${{ matrix.os }}'
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
@@ -50,7 +46,6 @@ jobs:
           release: 15.2.Rel1
       - name: Install Dependencies
         shell: bash
-        if: matrix.os == 'ubuntu-latest'
         run: |
           sudo apt-get update
           sudo apt-get install -y gcc-multilib
@@ -73,7 +68,6 @@ jobs:
           cd ..
       - name: Build mtest apps
         shell: bash
-        if: matrix.os == 'ubuntu-latest'
         run: |
           cd build_mtest
           bash ../.github/test_build_mtest_apps.sh
diff --git a/.github/workflows/newt_test_all.yml 
b/.github/workflows/newt_test_all.yml
index 3e9264884..dea6a9395 100644
--- a/.github/workflows/newt_test_all.yml
+++ b/.github/workflows/newt_test_all.yml
@@ -35,26 +35,16 @@ permissions:
 jobs:
   newt_test:
     name: Run newt test all
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-go@v3
         with:
           go-version: 'stable'
       - name: Install Dependencies
-        if: matrix.os == 'ubuntu-latest'
         run: |
              sudo apt-get update
              sudo apt-get install -y gcc-multilib
-      - name: Install GNU sed
-        if: matrix.os == 'macos-15-intel'
-        run: |
-             brew install gnu-sed
-             echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
       - name: Install newt
         run: |
              go version

Reply via email to