-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly bump version, modify workflow
Signed-off-by: Sara Damiano <[email protected]>
- Loading branch information
Showing
6 changed files
with
61 additions
and
23 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build Examples | ||
name: Build Examples with PlatformIO | ||
|
||
# Triggers the workflow on push or pull request events | ||
on: [push, pull_request] | ||
|
@@ -53,23 +53,6 @@ jobs: | |
echo "LIBRARY_INSTALL_SOURCE=https://github.com/${GITHUB_REPOSITORY}.git#${GITHUB_HEAD_REF}" >> $GITHUB_ENV | ||
fi | ||
- name: Restore or Cache pip | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
# if requirements.txt hasn't changed, then it will be a "cache hit" and pip will be restored | ||
# if requirements.txt HAS changed, it will be a "cache miss" and a new cache of pip will be created if the job completes successfully | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: ${{ runner.os }}-pip- | ||
|
||
- name: Restore or Cache PlatformIO and Libraries | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.platformio | ||
# if nothing in the lock files has changed, then it will be a "cache hit" and pip will be restored | ||
# otherwise, it will be a "cache miss" and a new cache of libraries will be created if the job completes successfully | ||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
|
||
|
@@ -79,14 +62,28 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install --upgrade platformio | ||
- name: Restore or Cache Platforms and Libraries | ||
uses: actions/[email protected] | ||
id: cache_pio | ||
with: | ||
path: ~/.platformio | ||
# if nothing in the example_dependencies.json file has changed, then it will | ||
# be a "cache hit" and we can restore libraries from cache and not | ||
# download them. If it has changed we have to re-download. | ||
key: ${{ hashFiles('./examples/example_dependencies.json') }} | ||
|
||
# Install cores and library dependencies for the Arduino CLI, iff no cache | ||
- name: Install the Arduino libraries | ||
if: steps.cache_pio.outputs.cache-hit != 'true' | ||
run: pio lib --global install 89 415 1202 1286 | ||
|
||
- name: Run PlatformIO | ||
env: | ||
PLATFORMIO_CI_SRC: ${{ matrix.example }} | ||
TINYGSM_MODEM_TO_USE: ${{ matrix.modem }} | ||
run: | | ||
echo "${{ env.LIBRARY_INSTALL_SOURCE }}" | ||
pio lib --global install ${{ env.LIBRARY_INSTALL_SOURCE }} | ||
pio lib --global install 89 415 1202 1286 | ||
sed -i 's/\/\/ #define TINY_GSM_MODEM_SIM800/#define TINY_GSM_MODEM_SIM800/g' ${{ matrix.example }}/* | ||
platformio ci --project-option='build_flags=-D ${{ env.TINYGSM_MODEM_TO_USE }}' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev | ||
pio lib --global uninstall TinyGSM |
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,41 @@ | ||
[ | ||
{ | ||
"name": "PubSubClient", | ||
"owner": "knolleary", | ||
"library id": "89", | ||
"url": "https://github.com/knolleary/pubsubclient.git", | ||
"version": "~2.8", | ||
"note": "A client library for MQTT messaging.", | ||
"authors": ["Nick O'Leary"] | ||
}, | ||
{ | ||
"name": "Blynk", | ||
"owner": "blynkkk", | ||
"library id": "415", | ||
"url": "https://github.com/blynkkk/blynk-library.git", | ||
"version": "~0.6.7", | ||
"authors": ["Volodymyr Shymanskyy"], | ||
"frameworks": "*", | ||
"platforms": "*" | ||
}, | ||
{ | ||
"name": "AceCRC", | ||
"owner": "bxparks", | ||
"library id": "1202", | ||
"url": "https://github.com/bxparks/AceCRC.git", | ||
"version": "~1.0.1", | ||
"authors": ["Brian T. Park"], | ||
"frameworks": "*", | ||
"platforms": "*" | ||
}, | ||
{ | ||
"name": "StreamDebugger", | ||
"owner": "vshymanskyy", | ||
"library id": "1286", | ||
"url": "https://github.com/vshymanskyy/StreamDebugger.git", | ||
"version": "~1.0.1", | ||
"authors": ["Volodymyr Shymanskyy"], | ||
"frameworks": "*", | ||
"platforms": "*" | ||
} | ||
] |
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
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