@@ -57,106 +57,67 @@ jobs:
57
57
overwrite : true
58
58
59
59
# Windows and MacOS
60
- # build-arduino-win-mac:
61
- # name: Arduino on ${{ matrix.os }}
62
- # runs-on: ${{ matrix.os }}
63
- # strategy:
64
- # fail-fast: false
65
- # matrix:
66
- # os: [windows-latest, macOS-latest]
67
-
68
- # steps:
69
- # - uses: actions/checkout@v4
70
- # - uses: actions/setup-python@v5
71
- # with:
72
- # python-version: '3.x'
73
- # - name: Build Sketches
74
- # run: bash ./.github/scripts/on-push.sh
60
+ build-arduino-win-mac :
61
+ name : Arduino on ${{ matrix.os }}
62
+ runs-on : ${{ matrix.os }}
63
+ strategy :
64
+ fail-fast : false
65
+ matrix :
66
+ os : [windows-latest, macOS-latest]
67
+
68
+ steps :
69
+ - uses : actions/checkout@v4
70
+ - uses : actions/setup-python@v5
71
+ with :
72
+ python-version : ' 3.x'
73
+ - name : Build Sketches
74
+ run : bash ./.github/scripts/on-push.sh
75
75
76
76
# PlatformIO on Windows, Ubuntu and Mac
77
- # build-platformio:
78
- # name: PlatformIO on ${{ matrix.os }}
79
- # runs-on: ${{ matrix.os }}
80
- # strategy:
81
- # fail-fast: false
82
- # matrix:
83
- # os: [ubuntu-latest, windows-latest, macOS-latest]
84
-
85
- # steps:
86
- # - uses: actions/checkout@v4
87
- # - uses: actions/setup-python@v5
88
- # with:
89
- # python-version: '3.x'
90
- # - name: Build Sketches
91
- # run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
92
-
93
- # build-esp-idf-component:
94
- # name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
95
- # runs-on: ubuntu-20.04
96
- # strategy:
97
- # fail-fast: false
98
- # matrix:
77
+ build-platformio :
78
+ name : PlatformIO on ${{ matrix.os }}
79
+ runs-on : ${{ matrix.os }}
80
+ strategy :
81
+ fail-fast : false
82
+ matrix :
83
+ os : [ubuntu-latest, windows-latest, macOS-latest]
84
+
85
+ steps :
86
+ - uses : actions/checkout@v4
87
+ - uses : actions/setup-python@v5
88
+ with :
89
+ python-version : ' 3.x'
90
+ - name : Build Sketches
91
+ run : bash ./.github/scripts/on-push.sh 1 1 # equal and non-zero to trigger PIO
92
+
93
+ build-esp-idf-component :
94
+ name : Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
95
+ runs-on : ubuntu-20.04
96
+ strategy :
97
+ fail-fast : false
98
+ matrix :
99
99
# The version names here correspond to the versions of espressif/idf Docker image.
100
100
# See https://hub.docker.com/r/espressif/idf/tags and
101
101
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
102
102
# for details.
103
- # idf_ver: ["release-v5.1"]
104
- # idf_target: ["esp32", "esp32s2", "esp32s3", "esp32c2", "esp32c3", "esp32c6", "esp32h2"]
105
- # container: espressif/idf:${{ matrix.idf_ver }}
106
- # steps:
107
- # - name: Check out arduino-esp32 as a component
108
- # uses: actions/checkout@v4
109
- # with:
110
- # submodules: recursive
111
- # path: components/arduino-esp32
112
- # - name: Build
113
- # env:
114
- # IDF_TARGET: ${{ matrix.idf_target }}
115
- # shell: bash
116
- # run: |
117
- # . ${IDF_PATH}/export.sh
118
- # idf.py create-project test
119
- # echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
120
- # idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
121
-
122
- # build-arduino-base-linux:
123
- # name: Arduino Base ${{ matrix.chunk }} on ubuntu-latest
124
- # #run if its on PR only
125
- # if: github.event_name == 'pull_request'
126
- # runs-on: ubuntu-latest
127
- # strategy:
128
- # fail-fast: false
129
- # matrix:
130
- # chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
131
-
132
- # # Checkout base branch
133
- # steps:
134
- # - uses: actions/checkout@v4
135
- # with:
136
- # ref: ${{ github.event.pull_request.base.ref }}
137
- # - uses: actions/setup-python@v5
138
- # with:
139
- # python-version: '3.x'
140
- # - name: Cache tools
141
- # id: cache-linux
142
- # uses: actions/cache@v4
143
- # with:
144
- # path: |
145
- # ./tools/dist
146
- # ~/arduino_ide
147
- # key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json',
148
- # 'tools/get.py',
149
- # '.github/scripts/install-arduino-ide.sh') }}
150
- # - name: Build Sketches
151
- # run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15 1
152
-
153
- # #Upload cli compile json as artifact
154
- # - name: Upload cli compile json
155
- # uses: actions/upload-artifact@v4
156
- # with:
157
- # name: master_cli_compile_${{ matrix.chunk }}
158
- # path: cli_compile_${{ matrix.chunk }}.json
159
- # overwrite: true
103
+ idf_ver : ["release-v5.1"]
104
+ idf_target : ["esp32", "esp32s2", "esp32s3", "esp32c2", "esp32c3", "esp32c6", "esp32h2"]
105
+ container : espressif/idf:${{ matrix.idf_ver }}
106
+ steps :
107
+ - name : Check out arduino-esp32 as a component
108
+ uses : actions/checkout@v4
109
+ with :
110
+ submodules : recursive
111
+ path : components/arduino-esp32
112
+ - name : Build
113
+ env :
114
+ IDF_TARGET : ${{ matrix.idf_target }}
115
+ shell : bash
116
+ run : |
117
+ . ${IDF_PATH}/export.sh
118
+ idf.py create-project test
119
+ echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
120
+ idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
160
121
161
122
# Save artifacts to gh-pages
162
123
save-master-artifacts :
0 commit comments