Skip to content

Commit 0bb08bb

Browse files
committed
ci: enable windows test
1 parent df5c0bc commit 0bb08bb

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/test-build-idf-apps.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- 'idf_build_apps/**'
7+
- '.github/workflows/test-build-idf-apps.yml'
78
push:
89
branches:
910
- main
@@ -60,25 +61,37 @@ jobs:
6061
test ! -f build_esp32s2/hello_world.bin
6162
6263
build-apps-on-idf-master:
63-
runs-on: ubuntu-latest
64-
container:
65-
image: espressif/idf:latest
64+
strategy:
65+
matrix:
66+
include:
67+
- name: windows
68+
os: windows-latest
69+
idf_path: 'C:\esp\idf'
70+
- name: ubuntu
71+
os: ubuntu-latest
72+
idf_path: '/opt/esp/idf'
73+
runs-on: ${{ matrix.os }}
6674
env:
6775
FLIT_ROOT_INSTALL: 1
6876
steps:
6977
- uses: actions/checkout@v4
78+
79+
- name: Install ESP-IDF
80+
uses: espressif/install-esp-idf-action@v1
81+
with:
82+
version: "master"
83+
7084
- name: Build the Apps
7185
run: |
72-
bash $IDF_PATH/install.sh
73-
. $IDF_PATH/export.sh
86+
. ${{ matrix.idf_path }}/export.sh
7487
pip install flit
7588
flit install -s
7689
python -m idf_build_apps build -vv -t esp32 \
77-
-p $IDF_PATH/examples/get-started/hello_world \
90+
-p ${{ matrix.idf_path }}/examples/get-started/hello_world \
7891
--size-file size_info.json
7992
pytest --cov idf_build_apps --cov-report term-missing:skip-covered --junit-xml pytest.xml | tee pytest-coverage.txt
8093
- name: Pytest coverage comment
81-
if: github.event_name == 'pull_request'
94+
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
8295
uses: MishaKav/pytest-coverage-comment@main
8396
with:
8497
pytest-coverage-path: pytest-coverage.txt

0 commit comments

Comments
 (0)