-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from tobozo/1.2.1
1.2.1
- Loading branch information
Showing
13 changed files
with
431 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: PlatformIOBuild | ||
|
||
env: | ||
PROJECT_DIR: examples/Test/build_test | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.ino' | ||
- '**.ini' | ||
- '**.cpp' | ||
- '**.hpp' | ||
- '**.h' | ||
- '**.c' | ||
- '**PlatformioBuild.yml' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
|
||
build: | ||
name: ${{ matrix.piocontext }}@${{ matrix.platform-version }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
|
||
piocontext: | ||
- lgfx | ||
- m5stick-c | ||
- m5stack-core-esp32 | ||
- m5stack-core2 | ||
- m5unified | ||
- s3box | ||
|
||
platform-version: | ||
- 1.0.6 | ||
- 2.0.0 | ||
- 2.0.1 | ||
#- 2.0.2 # has broken SD Support | ||
- 2.0.3 | ||
- 2.0.4 | ||
|
||
exclude: | ||
- { piocontext: s3box, platform-version: 1.0.6 } | ||
- { piocontext: s3box, platform-version: 2.0.0 } | ||
- { piocontext: s3box, platform-version: 2.0.1 } | ||
#- { piocontext: s3box, platform-version: 2.0.2 } | ||
- { piocontext: m5stack-core2, platform-version: 1.0.6 } # M5Core2.h broken I2S support with 1.0.6 | ||
- { piocontext: m5stack-core2, platform-version: 2.0.0 } # M5Core2.h broken I2S support with 2.0.0 | ||
|
||
include: | ||
- piocontext: lgfx | ||
- piocontext: m5stick-c | ||
- piocontext: m5stack-core-esp32 | ||
- piocontext: m5stack-core2 | ||
- piocontext: m5unified | ||
- piocontext: s3box | ||
|
||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.platformio | ||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
|
||
- name: Install PlatformIO | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade platformio | ||
pio update | ||
pio upgrade | ||
- name: Run PlatformIO | ||
run: | | ||
cd ${{ env.PROJECT_DIR }} | ||
[[ "${{ env.BRANCH_NAME }}" == "master" ]] && rm dev_lib_deps.ini || echo "Develop!" && pio system prune -f | ||
pio lib -e ${{ matrix.piocontext }}@${{ matrix.platform-version }} install --no-save file://$(realpath ../../../) | ||
pio run -e ${{ matrix.piocontext }}@${{ matrix.platform-version }} | ||
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[lib_sdupdater] | ||
lib_deps = M5Stack-SD-Updater | ||
|
||
[lib_lgfx] | ||
lib_deps = | ||
git+https://github.com/lovyan03/LovyanGFX#develop | ||
${lib_sdupdater.lib_deps} | ||
|
||
[lib_chimeracore] | ||
lib_deps = | ||
git+https://github.com/lovyan03/LovyanGFX#develop | ||
git+https://github.com/tobozo/ESP32-Chimera-Core#1.4.2 | ||
${lib_sdupdater.lib_deps} | ||
|
||
[lib_m5unified] | ||
lib_deps = | ||
git+https://github.com/M5Stack/M5GFX#develop | ||
git+https://github.com/M5Stack/M5Unified#develop | ||
${lib_sdupdater.lib_deps} | ||
|
||
[lib_m5core2] | ||
lib_deps = | ||
M5Core2 | ||
${lib_sdupdater.lib_deps} | ||
|
||
[lib_m5stickc] | ||
lib_deps = | ||
M5StickC | ||
${lib_sdupdater.lib_deps} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
#if defined TEST_LGFX | ||
|
||
#include "../../../LGFX-SDLoader-Snippet/LGFX-SDLoader-Snippet.ino" | ||
|
||
#elif defined TEST_M5Core2 | ||
|
||
#include "../../../M5Core2-SDLoader-Snippet/M5Core2-SDLoader-Snippet.ino" | ||
|
||
#elif defined TEST_M5Stack || defined TEST_S3Box | ||
|
||
#include "../../../M5Stack-SDLoader-Snippet/M5Stack-SDLoader-Snippet.ino" | ||
|
||
#elif defined TEST_M5StickC | ||
|
||
#include "../../../M5StickC-SPIFFS-Loader-Snippet/M5StickC-SPIFFS-Loader-Snippet.ino" | ||
|
||
#elif defined TEST_M5Unified | ||
|
||
#include "../../../M5Unified/M5Unified.ino" | ||
|
||
#else | ||
|
||
#error "No device to test" | ||
|
||
#endif | ||
|
Oops, something went wrong.