Skip to content

Commit bd08d72

Browse files
committed
test
1 parent b40b924 commit bd08d72

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

.github/workflows/build_tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
on:
22
workflow_call:
33
inputs:
4-
chip:
5-
required: true
6-
type: string
74
type:
85
required: true
96
type: string
@@ -12,25 +9,30 @@ on:
129
type: string
1310

1411
concurrency:
15-
group: tests-build-${{ inputs.ref }}-${{ inputs.chip }}-${{ inputs.type }}
12+
group: tests-build-${{ inputs.type }}-${{ inputs.ref }}
1613
cancel-in-progress: true
1714

1815
jobs:
1916
build-tests:
20-
name: Build ${{ inputs.type }} tests for ${{ inputs.chip }}
17+
name: Build ${{ inputs.type }} tests for ${{ matrix.chip }}
2118
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
chip: ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2']
2222
steps:
2323
- name: Checkout Repository
2424
uses: actions/checkout@v4
2525

2626
- name: Build sketches
2727
run: |
28-
bash .github/scripts/tests_build.sh -c -type ${{ inputs.type }} -t ${{ inputs.chip }}
28+
bash .github/scripts/tests_build.sh -c -type ${{ inputs.type }} -t ${{ matrix.chip }}
29+
echo "Ref: ${{ inputs.ref }}"
30+
echo "Var: ${{ github.event.pull_request.number || github.ref }}"
2931
3032
- name: Upload ${{ inputs.chip }}-${{ inputs.type }} artifacts
3133
uses: actions/upload-artifact@v4
3234
with:
33-
name: ${{ inputs.chip }}-${{ inputs.type }}.artifacts
35+
name: ${{ matrix.chip }}-${{ inputs.type }}.artifacts
3436
if-no-files-found: error
3537
path: |
3638
~/.build_skipped

.github/workflows/tests.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,22 @@ concurrency:
1212

1313
jobs:
1414
call-build-validation-tests:
15-
name: Build validation tests for ${{ matrix.chip }}
15+
name: Build validation tests
1616
uses: ./.github/workflows/build_tests.yml
1717
permissions:
1818
contents: read
19-
strategy:
20-
matrix:
21-
chip: ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2']
2219
with:
23-
chip: ${{matrix.chip}}
2420
type: "validation"
2521
ref: ${{ github.event.pull_request.number || github.ref }}
2622

2723
call-build-performance-tests:
28-
name: Build performance tests for ${{ matrix.chip }}
24+
name: Build performance tests for
2925
uses: ./.github/workflows/build_tests.yml
3026
if: |
3127
${{ github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'perf_test') }}
3228
permissions:
3329
contents: read
34-
strategy:
35-
matrix:
36-
chip: ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2']
3730
with:
38-
chip: ${{matrix.chip}}
3931
type: "performance"
4032
ref: ${{ github.event.pull_request.number || github.ref }}
4133

0 commit comments

Comments
 (0)