File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
paths :
6
6
- ' idf_build_apps/**'
7
+ - ' .github/workflows/test-build-idf-apps.yml'
7
8
push :
8
9
branches :
9
10
- main
@@ -60,25 +61,37 @@ jobs:
60
61
test ! -f build_esp32s2/hello_world.bin
61
62
62
63
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 }}
66
74
env :
67
75
FLIT_ROOT_INSTALL : 1
68
76
steps :
69
77
- uses : actions/checkout@v4
78
+
79
+ - name : Install ESP-IDF
80
+ uses : espressif/install-esp-idf-action@v1
81
+ with :
82
+ version : " master"
83
+
70
84
- name : Build the Apps
71
85
run : |
72
- bash $IDF_PATH/install.sh
73
- . $IDF_PATH/export.sh
86
+ . ${{ matrix.idf_path }}/export.sh
74
87
pip install flit
75
88
flit install -s
76
89
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 \
78
91
--size-file size_info.json
79
92
pytest --cov idf_build_apps --cov-report term-missing:skip-covered --junit-xml pytest.xml | tee pytest-coverage.txt
80
93
- name : Pytest coverage comment
81
- if : github.event_name == 'pull_request'
94
+ if : github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
82
95
uses : MishaKav/pytest-coverage-comment@main
83
96
with :
84
97
pytest-coverage-path : pytest-coverage.txt
You can’t perform that action at this time.
0 commit comments