Skip to content

Commit e336e7a

Browse files
authored
[github-actions] simplify simulation-1.4 workflow (openthread#12886)
This commit simplifies the Simulation 1.4 workflow by removing the compiler and architecture matrix. Run-time issues due to compiler differences or architecture have not been an issue, so testing a single configuration is sufficient to reduce CI resource usage. The workflow now uses the default environment instead of explicitly testing both gcc/clang and m32/m64 architectures.
1 parent 20a83e1 commit e336e7a

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/simulation-1.4.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,18 @@ permissions: # added using https://github.com/step-security/secure-workflows
4646
jobs:
4747

4848
thread-1-4:
49-
name: thread-1-4-${{ matrix.compiler.c }}-${{ matrix.arch }}
49+
name: thread-1-4
5050
runs-on: ubuntu-22.04
5151
env:
52-
CFLAGS: -${{ matrix.arch }}
53-
CXXFLAGS: -${{ matrix.arch }}
54-
LDFLAGS: -${{ matrix.arch }}
5552
COVERAGE: 1
5653
THREAD_VERSION: 1.4
5754
VIRTUAL_TIME: 1
5855
TEST_TIMEOUT: 300
5956
OT_VT_USE_UNIX_SOCKET: 1
6057
INTER_OP: 1
6158
INTER_OP_BBR: 1
62-
CC: ${{ matrix.compiler.c }}
63-
CXX: ${{ matrix.compiler.cxx }}
6459
strategy:
6560
fail-fast: false
66-
matrix:
67-
compiler: [{c: "gcc", cxx: "g++", gcov: "gcc"}, { c: "clang", cxx: "clang++", gcov: "llvm"}]
68-
arch: ["m32", "m64"]
6961
steps:
7062
- name: Harden Runner
7163
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
@@ -104,7 +96,7 @@ jobs:
10496
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
10597
if: ${{ failure() }}
10698
with:
107-
name: thread-1-4-${{ matrix.compiler.c }}-${{ matrix.arch }}-pcaps
99+
name: thread-1-4-pcaps
108100
path: "*.pcap"
109101
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
110102
if: ${{ failure() && env.CRASHED == '1' }}
@@ -114,10 +106,10 @@ jobs:
114106
./ot-core-dump/*
115107
- name: Generate Coverage
116108
run: |
117-
./script/test generate_coverage "${{ matrix.compiler.gcov }}"
109+
./script/test generate_coverage gcc
118110
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
119111
with:
120-
name: cov-thread-1-4-${{ matrix.compiler.c }}-${{ matrix.arch }}
112+
name: cov-thread-1-4
121113
path: tmp/coverage.info
122114
retention-days: 1
123115

0 commit comments

Comments
 (0)