Skip to content

Commit 3351967

Browse files
committed
fix(modem): Added CI jobs to build all tests for all targets
1 parent 6c3138b commit 3351967

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/modem__build-host-tests.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
types: [opened, synchronize, reopened, labeled]
99

1010
jobs:
11-
build_esp_modem:
11+
build_esp_modem_examples:
1212
if: contains(github.event.pull_request.labels.*.name, 'modem') || github.event_name == 'push'
13-
name: Build
13+
name: Build examples
1414
strategy:
1515
matrix:
1616
idf_ver: ["latest", "release-v4.2", "release-v4.3", "release-v4.4", "release-v5.0"]
@@ -50,7 +50,33 @@ jobs:
5050
. ${IDF_PATH}/export.sh
5151
python -m pip install idf-build-apps
5252
cd $GITHUB_WORKSPACE/protocols
53-
python ./ci/build_apps.py components/esp_modem/examples/${{ matrix.example }} -m components/esp_modem/examples/.build-test-rules.yml
53+
python ./ci/build_apps.py components/esp_modem/examples/${{ matrix.example }} -m components/esp_modem/.build-test-rules.yml
54+
55+
build_esp_modem_tests:
56+
if: contains(github.event.pull_request.labels.*.name, 'modem') || github.event_name == 'push'
57+
name: Build tests
58+
strategy:
59+
matrix:
60+
idf_ver: ["release-v5.0", "release-v5.1", "latest"]
61+
test: ["target", "target_iperf"]
62+
63+
runs-on: ubuntu-20.04
64+
container: espressif/idf:${{ matrix.idf_ver }}
65+
steps:
66+
- name: Checkout esp-protocols
67+
uses: actions/checkout@v3
68+
with:
69+
path: protocols
70+
- name: Build ${{ matrix.test }} with IDF-${{ matrix.idf_ver }}
71+
env:
72+
EXPECTED_WARNING: ${{ matrix.warning }}
73+
shell: bash
74+
run: |
75+
. ${IDF_PATH}/export.sh
76+
python -m pip install idf-build-apps
77+
cd $GITHUB_WORKSPACE/protocols
78+
python ./ci/build_apps.py components/esp_modem/test/${{ matrix.test }} -m components/esp_modem/.build-test-rules.yml
79+
5480
5581
host_test_esp_modem:
5682
if: contains(github.event.pull_request.labels.*.name, 'modem') || github.event_name == 'push'

0 commit comments

Comments
 (0)