-
Notifications
You must be signed in to change notification settings - Fork 940
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into miltieIV2/add_support_for_adafruit_feather…
…_rp2040_rfm95
- Loading branch information
Showing
95 changed files
with
2,129 additions
and
663 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Test Simulator | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Run every day at midnight | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
test-simulator: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install libbluetooth | ||
shell: bash | ||
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get install -y libbluetooth-dev libgpiod-dev libyaml-cpp-dev openssl libssl-dev libulfius-dev liborcania-dev | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Upgrade python tools | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U platformio adafruit-nrfutil | ||
pip install -U meshtastic --pre | ||
- name: Upgrade platformio | ||
shell: bash | ||
run: | | ||
pio upgrade | ||
- name: Build Native | ||
run: bin/build-native.sh | ||
|
||
# We now run integration test before other build steps (to quickly see runtime failures) | ||
- name: Build for native | ||
run: platformio run -e native | ||
|
||
- name: Integration test | ||
run: | | ||
.pio/build/native/program & sleep 10 # 5 seconds was not enough | ||
echo "Simulator started, launching python test..." | ||
python3 -c 'from meshtastic.test import testSimulator; testSimulator()' | ||
- name: PlatformIO Tests | ||
run: platformio test -e native --junit-output-path testreport.xml | ||
|
||
- name: Test Report | ||
uses: dorny/[email protected] | ||
if: success() || failure() # run this step even if previous step failed | ||
with: | ||
name: PlatformIO Tests | ||
path: testreport.xml | ||
reporter: java-junit |
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ build_src_filter = | |
|
||
lib_deps= | ||
${arduino_base.lib_deps} | ||
rweather/Crypto@^0.4.0 | ||
|
||
lib_ignore = | ||
BluetoothOTA |
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,37 +1,42 @@ | ||
|
||
|
||
import subprocess | ||
import configparser | ||
import traceback | ||
import sys | ||
import subprocess | ||
|
||
|
||
def readProps(prefsLoc): | ||
"""Read the version of our project as a string""" | ||
|
||
config = configparser.RawConfigParser() | ||
config.read(prefsLoc) | ||
version = dict(config.items('VERSION')) | ||
verObj = dict(short = "{}.{}.{}".format(version["major"], version["minor"], version["build"]), | ||
long = "unset") | ||
version = dict(config.items("VERSION")) | ||
verObj = dict( | ||
short="{}.{}.{}".format(version["major"], version["minor"], version["build"]), | ||
long="unset", | ||
) | ||
|
||
# Try to find current build SHA if if the workspace is clean. This could fail if git is not installed | ||
try: | ||
sha = subprocess.check_output( | ||
['git', 'rev-parse', '--short', 'HEAD']).decode("utf-8").strip() | ||
isDirty = subprocess.check_output( | ||
['git', 'diff', 'HEAD']).decode("utf-8").strip() | ||
sha = ( | ||
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]) | ||
.decode("utf-8") | ||
.strip() | ||
) | ||
isDirty = ( | ||
subprocess.check_output(["git", "diff", "HEAD"]).decode("utf-8").strip() | ||
) | ||
suffix = sha | ||
# if isDirty: | ||
# # short for 'dirty', we want to keep our verstrings source for protobuf reasons | ||
# suffix = sha + "-d" | ||
verObj['long'] = "{}.{}.{}.{}".format( | ||
version["major"], version["minor"], version["build"], suffix) | ||
verObj["long"] = "{}.{}.{}.{}".format( | ||
version["major"], version["minor"], version["build"], suffix | ||
) | ||
except: | ||
# print("Unexpected error:", sys.exc_info()[0]) | ||
# traceback.print_exc() | ||
verObj['long'] = verObj['short'] | ||
verObj["long"] = verObj["short"] | ||
|
||
# print("firmware version " + verStr) | ||
return verObj | ||
|
||
|
||
# print("path is" + ','.join(sys.path)) |
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
Submodule protobufs
updated
13 files
+2 −0 | meshtastic/admin.options | |
+24 −0 | meshtastic/admin.proto | |
+4 −0 | meshtastic/config.options | |
+71 −5 | meshtastic/config.proto | |
+5 −0 | meshtastic/deviceonly.options | |
+46 −1 | meshtastic/deviceonly.proto | |
+5 −0 | meshtastic/localonly.proto | |
+9 −1 | meshtastic/mesh.options | |
+90 −12 | meshtastic/mesh.proto | |
+2 −1 | meshtastic/module_config.proto | |
+2 −2 | meshtastic/portnums.proto | |
+4 −1 | meshtastic/telemetry.options | |
+88 −40 | meshtastic/telemetry.proto |
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
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
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
Oops, something went wrong.