Skip to content

Commit 19bf46f

Browse files
authored
Merge branch 'master' into master
2 parents a2d1356 + b7c1cfb commit 19bf46f

File tree

854 files changed

+68831
-46160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

854 files changed

+68831
-46160
lines changed

.git-blame-ignore-revs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
9bdcd4f36a2e5285267b69b17e8fc26482dc1c72
2+
eea9999dc5eaf464a432f77d5b65269f9baf198d
3+
98125f88605cd7e46e9be4e1b3ad0600dd5d2b51
4+
19b7a29720a6f2c95d06e2ea4baa335dcf32e68f

.github/workflows/pull-request.yml

+76-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
build-linux:
1616
name: Build ${{ matrix.chunk }}
1717
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
shell: bash
1821
strategy:
1922
matrix:
2023
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
@@ -30,7 +33,7 @@ jobs:
3033
uses: actions/cache@v2
3134
with:
3235
path: ./tools/dist
33-
key: key-linux-toolchain
36+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh') }}
3437
- name: Build Sketches
3538
env:
3639
TRAVIS_BUILD_DIR: ${{ github.workspace }}
@@ -47,6 +50,9 @@ jobs:
4750
build-debug-ipv6:
4851
name: Debug IPv6 ${{ matrix.chunk }}
4952
runs-on: ubuntu-latest
53+
defaults:
54+
run:
55+
shell: bash
5056
strategy:
5157
matrix:
5258
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
@@ -62,7 +68,7 @@ jobs:
6268
uses: actions/cache@v2
6369
with:
6470
path: ./tools/dist
65-
key: key-linux-toolchain
71+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh') }}
6672
- name: Build Sketches
6773
env:
6874
TRAVIS_BUILD_DIR: ${{ github.workspace }}
@@ -90,7 +96,7 @@ jobs:
9096
uses: actions/cache@v2
9197
with:
9298
path: ./tools/dist
93-
key: key-windows-toolchain
99+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh') }}
94100
- name: Build Sketch
95101
env:
96102
TRAVIS_BUILD_DIR: ${{ github.workspace }}
@@ -102,14 +108,17 @@ jobs:
102108
run: |
103109
# Windows has python3 already installed, but it's called "python".
104110
# Copy python.exe to the proper name so scripts "just work".
105-
copy (get-command python).source (get-command python).source.Replace("python.exe", "python3.exe")
111+
try { Get-Command python3 } catch { copy (get-command python).source (get-command python).source.Replace("python.exe", "python3.exe") }
106112
bash ./tests/build.sh
107113
108114
109115
# Single build under macOS to ensure the Mac toolchain is good.
110116
build-mac:
111117
name: Mac
112118
runs-on: macOS-latest
119+
defaults:
120+
run:
121+
shell: bash
113122
steps:
114123
- uses: actions/checkout@v2
115124
with:
@@ -122,7 +131,7 @@ jobs:
122131
uses: actions/cache@v2
123132
with:
124133
path: ./tools/dist
125-
key: key-mac-toolchain
134+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh') }}
126135
- name: Build Sketch
127136
env:
128137
TRAVIS_BUILD_DIR: ${{ github.workspace }}
@@ -139,6 +148,9 @@ jobs:
139148
build-pio:
140149
name: Build Platform.IO
141150
runs-on: ubuntu-latest
151+
defaults:
152+
run:
153+
shell: bash
142154
steps:
143155
- uses: actions/checkout@v2
144156
with:
@@ -154,14 +166,18 @@ jobs:
154166
mod: 42 # Picked at random to give 4-5 builds and exit.
155167
rem: 13
156168
run: |
157-
sudo apt-get install python3-pip python3-setuptools
169+
sudo apt update
170+
sudo apt install python3-pip python3-setuptools
158171
PATH=/home/runner/.local/bin:$PATH bash ./tests/platformio.sh
159172
160173
161174
# Run host test suite under valgrind for runtime checking of code.
162175
host-tests:
163176
name: Host tests
164177
runs-on: ubuntu-latest
178+
defaults:
179+
run:
180+
shell: bash
165181
steps:
166182
- uses: actions/checkout@v2
167183
with:
@@ -174,14 +190,18 @@ jobs:
174190
TRAVIS_BUILD_DIR: ${{ github.workspace }}
175191
TRAVIS_TAG: ${{ github.ref }}
176192
run: |
177-
sudo apt-get install valgrind lcov
193+
sudo apt update
194+
sudo apt install valgrind lcov
178195
bash ./tests/ci/host_test.sh
179196
180197
181198
# Ensure Sphinx can build the documentation properly.
182199
documentation:
183200
name: Documentation
184201
runs-on: ubuntu-latest
202+
defaults:
203+
run:
204+
shell: bash
185205
steps:
186206
- uses: actions/checkout@v2
187207
with:
@@ -194,7 +214,8 @@ jobs:
194214
TRAVIS_BUILD_DIR: ${{ github.workspace }}
195215
TRAVIS_TAG: ${{ github.ref }}
196216
run: |
197-
sudo apt-get install python3-pip python3-setuptools
217+
sudo apt update
218+
sudo apt install python3-pip python3-setuptools
198219
# GitHub CI installs pip3 and setuptools outside the path.
199220
# Update the path to include them and run.
200221
PATH=/home/runner/.local/bin:$PATH pip3 install --user -r doc/requirements.txt
@@ -205,6 +226,9 @@ jobs:
205226
style-check:
206227
name: Style and formatting
207228
runs-on: ubuntu-latest
229+
defaults:
230+
run:
231+
shell: bash
208232
steps:
209233
- uses: actions/checkout@v2
210234
with:
@@ -214,17 +238,31 @@ jobs:
214238
python-version: '3.x'
215239
- name: Style check
216240
env:
241+
LLVM_SNAPSHOT_KEY: "6084F3CF814B57C1CF12EFD515CF4D18AF4F7421"
217242
TRAVIS_BUILD_DIR: ${{ github.workspace }}
218243
TRAVIS_TAG: ${{ github.ref }}
219244
run: |
220-
sudo apt-get install astyle
245+
export GNUPGHOME=$(mktemp -d)
246+
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$LLVM_SNAPSHOT_KEY"
247+
gpg --batch --armor --export "$LLVM_SNAPSHOT_KEY" | \
248+
sudo tee /etc/apt/trusted.gpg.d/llvm-snapshot.gpg.asc
249+
gpgconf --kill all
250+
rm -r $GNUPGHOME
251+
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main" | \
252+
sudo tee /etc/apt/sources.list.d/llvm.list
253+
sudo apt update
254+
sudo apt install clang-format-13
255+
pip3 install pyyaml
221256
bash ./tests/ci/style_check.sh
222257
223258
224259
# Quick test that the mocking builds succeed
225260
mock-check:
226261
name: Mock trivial test
227262
runs-on: ubuntu-latest
263+
defaults:
264+
run:
265+
shell: bash
228266
steps:
229267
- uses: actions/checkout@v2
230268
with:
@@ -244,16 +282,45 @@ jobs:
244282
boards-check:
245283
name: Boards.txt check
246284
runs-on: ubuntu-latest
285+
defaults:
286+
run:
287+
shell: bash
247288
steps:
248289
- uses: actions/checkout@v2
249290
with:
250291
submodules: true
251292
- uses: actions/setup-python@v2
252293
with:
253294
python-version: '3.x'
295+
- name: Cache Linux toolchain
296+
id: cache-linux
297+
uses: actions/cache@v2
298+
with:
299+
path: ./tools/dist
300+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh') }}
254301
- name: Boards.txt diff
255302
env:
256303
TRAVIS_BUILD_DIR: ${{ github.workspace }}
257304
TRAVIS_TAG: ${{ github.ref }}
258305
run: |
259306
bash ./tests/ci/build_boards.sh
307+
bash ./tests/ci/eboot_test.sh
308+
bash ./tests/ci/pkgrefs_test.sh
309+
310+
311+
# Validate orthography
312+
code-spell:
313+
name: Check spelling
314+
runs-on: ubuntu-latest
315+
defaults:
316+
run:
317+
shell: bash
318+
steps:
319+
- uses: actions/checkout@v2
320+
with:
321+
submodules: true
322+
- name: Run codespell
323+
uses: codespell-project/actions-codespell@master
324+
with:
325+
skip: ./libraries/ESP8266SdFat,./libraries/LittleFS/lib,./tools/pyserial,./tools/sdk,./tools/esptool,./libraries/SoftwareSerial,./libraries/Ethernet,./github/workflows,./libraries/ESP8266HTTPUpdateServer/examples/SecureBearSSLUpdater/SecureBearSSLUpdater.ino,./libraries/esp8266/examples/RTCUserMemory/RTCUserMemory.ino,./libraries/esp8266/examples/StreamString/StreamString.ino,./libraries/ESP8266WiFi/examples/BearSSL_Validation/BearSSL_Validation.ino,./libraries/ESP8266WiFi/examples/BearSSL_Sessions/BearSSL_Sessions.ino,./libraries/ESP8266WebServer/examples/HelloServerBearSSL/HelloServerBearSSL.ino,./libraries/ESP8266WebServer/examples/HttpHashCredAuth/HttpHashCredAuth.ino,./cores/esp8266/spiffs,./tests/device/test_libc/libm_string.c, ./libraries/Netdump/examples/Netdump/Netdump.ino,./libraries/ESP8266WiFi/examples/BearSSL_Server,./cores/esp8266/LwipIntfDev.h
326+
ignore_words_list: ESP8266,esp8266,esp,dout,DOUT,ser,ans

.github/workflows/release-to-publish.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,19 @@ jobs:
3232
package:
3333
name: Update master JSON file
3434
runs-on: ubuntu-latest
35+
defaults:
36+
run:
37+
shell: bash
3538
steps:
3639
- uses: actions/checkout@v2
3740
with:
38-
submodules: true
39-
- uses: actions/setup-python@v2
40-
with:
41-
python-version: '3.x'
42-
- name: Set GIT tag name
43-
run: |
44-
echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)"
41+
submodules: false
42+
fetch-depth: 0
4543
- name: Deploy updated JSON
4644
env:
4745
TRAVIS_BUILD_DIR: ${{ github.workspace }}
4846
BUILD_TYPE: package
4947
CI_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
5048
GHCI_DEPLOY_KEY: ${{ secrets.GHCI_DEPLOY_KEY }}
5149
run: |
52-
bash ./tests/ci/build_package.sh
53-
# Only the regenerated JSON file will be used, but it's simpler
54-
# than looking for it in a GH release.
5550
bash ./package/deploy_package_index.sh
56-

.github/workflows/tag-to-draft-release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,22 @@ jobs:
1414
package:
1515
name: Package
1616
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash
1720
steps:
1821
- uses: actions/checkout@v2
1922
with:
2023
submodules: true
24+
fetch-depth: 0
2125
- uses: actions/setup-python@v2
2226
with:
2327
python-version: '3.x'
2428
- name: Set GIT tag name
2529
run: |
2630
# Sets an environment variable used in the next steps
27-
echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)"
31+
TRAVIS_TAG="$(git describe --exact-match --tags)"
32+
echo "TRAVIS_TAG=${TRAVIS_TAG}" >> $GITHUB_ENV
2833
- name: Build package JSON
2934
env:
3035
TRAVIS_BUILD_DIR: ${{ github.workspace }}

.gitignore

-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@ tools/dist/
33
tools/xtensa-lx106-elf/
44
tools/mkspiffs/
55
tools/mklittlefs/
6-
tools/python/
76
tools/python3/
87
package/versions/
98
exclude.txt
10-
tools/sdk/lib/liblwip_src.a
11-
tools/sdk/lwip/src/build
12-
tools/sdk/lwip/src/liblwip_src.a
13-
tools/sdk/ld/backup
14-
tools/sdk/ld/eagle.app.v6.common.ld
159

1610
tests/hosts/lcov/
1711

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
url = https://github.com/arduino-libraries/Ethernet.git
2525
[submodule "tools/sdk/uzlib"]
2626
path = tools/sdk/uzlib
27-
url = https://github.com/earlephilhower/uzlib.git
27+
url = https://github.com/pfalcon/uzlib.git

.travis.yml

-71
This file was deleted.

0 commit comments

Comments
 (0)