Tools - mkbuildoptglobals refactoring & attempt to fix caching #833
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cross-platform builds to ensure our Core and toolchain works | |
name: Build IDE examples | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
# download toolchain and check whether gcc basic .c compilation works | |
sanity-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- uses: actions/cache@v4 | |
with: | |
path: ./tools/dist | |
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh', 'tests/build.sh') }} | |
- name: Toolchain sanity checks | |
run: | | |
bash ./tests/sanity_check.sh | |
# verify that any scripts that will or may be used by the builder are working | |
tooling-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- run: | | |
python ./tools/test_mkbuildoptglobals.py --quiet | |
# Examples are built in parallel to avoid CI total job time limitation | |
build-linux: | |
name: Linux - LwIP ${{ matrix.lwip }} (${{ matrix.chunk }}) | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
lwip: ["default", "IPv6"] | |
chunk: [0, 1, 2, 3, 4, 5, 6, 7] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- uses: actions/cache@v4 | |
with: | |
path: ./tools/dist | |
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh', 'tests/build.sh') }} | |
- name: Build Sketches | |
env: | |
ESP8266_ARDUINO_BUILDER: "arduino" | |
ESP8266_ARDUINO_LWIP: ${{ matrix.lwip }} | |
run: | | |
bash ./tests/build.sh 8 ${{ matrix.chunk }} | |
# Just try to build at least one sketch, since we spend so much time with the matrix above | |
build-windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- uses: actions/cache@v4 | |
with: | |
path: ./tools/dist | |
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh', 'tests/build.sh') }} | |
- name: Build Sketch | |
env: | |
ESP8266_ARDUINO_SKETCHES: "libraries/esp8266/examples/Blink/Blink.ino" | |
run: | | |
bash ./tests/build.sh | |
build-mac: | |
name: macOS | |
runs-on: macOS-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- uses: actions/cache@v4 | |
with: | |
path: ./tools/dist | |
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh', 'tests/build.sh') }} | |
- name: Build Sketch | |
env: | |
ESP8266_ARDUINO_SKETCHES: "libraries/esp8266/examples/Blink/Blink.ino" | |
run: | | |
bash ./tests/build.sh |