mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-21 17:20:01 +00:00
commit
2a40718258
38
.github/actions/initbuild/action.yml
vendored
Normal file
38
.github/actions/initbuild/action.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: 'Common init'
|
||||||
|
|
||||||
|
# WARNING due to https://github.com/actions/runner/issues/646
|
||||||
|
# this code can't work - must copy and paste into workflows for now because 'uses' is not supported
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
|
- name: Cache python libs
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache-pip # needed in if test
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip
|
||||||
|
|
||||||
|
- name: Upgrade python tools
|
||||||
|
# We actually want to run this every time
|
||||||
|
# if: steps.cache-pip.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -U platformio meshtastic adafruit-nrfutil
|
||||||
|
|
||||||
|
- name: Cache platformio
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache-platformio # needed in if test
|
||||||
|
with:
|
||||||
|
path: ~/.platformio
|
||||||
|
key: ${{ runner.os }}-platformio
|
||||||
|
|
||||||
|
- name: Upgrade platformio
|
||||||
|
run: |
|
||||||
|
pio upgrade
|
||||||
|
|
||||||
|
|
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
@ -54,18 +54,29 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pio upgrade
|
pio upgrade
|
||||||
|
|
||||||
- name: Build for tbeam
|
# We now run integration test before other build steps (to quickly see runtime failures)
|
||||||
run: platformio run -e tbeam
|
|
||||||
- name: Build for heltec
|
|
||||||
run: platformio run -e heltec
|
|
||||||
- name: Build for wisblock RAK4631
|
|
||||||
run: platformio run -e rak4631
|
|
||||||
- name: Build for native
|
- name: Build for native
|
||||||
run: platformio run -e native
|
run: platformio run -e native
|
||||||
- name: Integration test
|
- name: Integration test
|
||||||
run: |
|
run: |
|
||||||
.pio/build/native/program &
|
.pio/build/native/program &
|
||||||
sleep 30 # 5 seconds was not enough
|
sleep 20 # 5 seconds was not enough
|
||||||
echo "Simulator started, launching python test..."
|
echo "Simulator started, launching python test..."
|
||||||
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
||||||
|
|
||||||
|
# - name: Build for tbeam
|
||||||
|
# run: platformio run -e tbeam
|
||||||
|
# - name: Build for heltec
|
||||||
|
# run: platformio run -e heltec
|
||||||
|
# - name: Build for wisblock RAK4631
|
||||||
|
# run: platformio run -e rak4631
|
||||||
|
|
||||||
|
- name: Build everything
|
||||||
|
run: bin/build-all.sh
|
||||||
|
|
||||||
|
- name: Store release zip as an artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: built
|
||||||
|
path: release/archive/firmware-*.zip
|
||||||
|
retention-days: 30
|
||||||
|
75
.github/workflows/release.yml
vendored
Normal file
75
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
name: Make Release
|
||||||
|
on:
|
||||||
|
# Can optionally take parameters from the github UI, more info here https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/#:~:text=You%20can%20now%20create%20workflows,the%20workflow%20is%20run%20on.
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
|
- name: Cache python libs
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache-pip # needed in if test
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip
|
||||||
|
|
||||||
|
- name: Upgrade python tools
|
||||||
|
# We actually want to run this every time
|
||||||
|
# if: steps.cache-pip.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -U platformio meshtastic adafruit-nrfutil
|
||||||
|
|
||||||
|
- name: Cache platformio
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache-platformio # needed in if test
|
||||||
|
with:
|
||||||
|
path: ~/.platformio
|
||||||
|
key: ${{ runner.os }}-platformio
|
||||||
|
|
||||||
|
- name: Upgrade platformio
|
||||||
|
run: |
|
||||||
|
pio upgrade
|
||||||
|
|
||||||
|
# Will be available in steps.version.outputs.version
|
||||||
|
- name: Get version string
|
||||||
|
run: echo "::set-output name=version::$(./bin/buildinfo.py)"
|
||||||
|
id: version
|
||||||
|
|
||||||
|
- name: Build everything
|
||||||
|
run: bin/build-all.sh
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
id: create_release
|
||||||
|
with:
|
||||||
|
draft: true
|
||||||
|
prerelease: true
|
||||||
|
release_name: ${{ steps.version.outputs.version }}
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
body: Text to be filled in by human
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: upload artifact
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: release/archive/firmware-${{ steps.version.outputs.version }}.zip
|
||||||
|
asset_name: firmware-${{ steps.version.outputs.version }}.zip
|
||||||
|
asset_content_type: application/zip
|
@ -14,10 +14,7 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="58922733-b05b-4b90-9655-b9b18914977a" name="Default Changelist" comment="">
|
<list default="true" id="58922733-b05b-4b90-9655-b9b18914977a" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.github/workflows/main.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.github/workflows/main.yml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/mesh/mesh-pb-constants.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/src/mesh/mesh-pb-constants.cpp" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/mqtt/MQTT.h" beforeDir="false" afterPath="$PROJECT_DIR$/src/mqtt/MQTT.h" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -102,7 +99,7 @@
|
|||||||
<workItem from="1617279002260" duration="1626000" />
|
<workItem from="1617279002260" duration="1626000" />
|
||||||
<workItem from="1617425689081" duration="1896000" />
|
<workItem from="1617425689081" duration="1896000" />
|
||||||
<workItem from="1617437366919" duration="1182000" />
|
<workItem from="1617437366919" duration="1182000" />
|
||||||
<workItem from="1618544034975" duration="586000" />
|
<workItem from="1618544034975" duration="1185000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
@ -18,7 +18,7 @@ ARCHIVEDIR=release/archive
|
|||||||
rm -f $OUTDIR/firmware*
|
rm -f $OUTDIR/firmware*
|
||||||
|
|
||||||
mkdir -p $OUTDIR/bins $ARCHIVEDIR
|
mkdir -p $OUTDIR/bins $ARCHIVEDIR
|
||||||
rm -r $OUTDIR/bins/*
|
rm -r $OUTDIR/bins/* || true
|
||||||
mkdir -p $OUTDIR/bins/universal $OUTDIR/elfs/universal
|
mkdir -p $OUTDIR/bins/universal $OUTDIR/elfs/universal
|
||||||
|
|
||||||
# build the named environment and copy the bins to the release directory
|
# build the named environment and copy the bins to the release directory
|
||||||
|
71
boards/wiscore_rak4600.json
Normal file
71
boards/wiscore_rak4600.json
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"arduino": {
|
||||||
|
"ldscript": "nrf52832_s132_v6.ld"
|
||||||
|
},
|
||||||
|
"core": "nRF5",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"extra_flags": "-DNRF52832_XXAA -DNRF52",
|
||||||
|
"f_cpu": "64000000L",
|
||||||
|
"hwids": [
|
||||||
|
[
|
||||||
|
"0x239A",
|
||||||
|
"0x8029"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x239A",
|
||||||
|
"0x0029"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x239A",
|
||||||
|
"0x002A"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x239A",
|
||||||
|
"0x802A"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"usb_product": "Feather nRF52832 Express",
|
||||||
|
"mcu": "nrf52832",
|
||||||
|
"variant": "WisCore_RAK4600_Board",
|
||||||
|
"bsp": {
|
||||||
|
"name": "adafruit"
|
||||||
|
},
|
||||||
|
"softdevice": {
|
||||||
|
"sd_flags": "-DS132",
|
||||||
|
"sd_name": "s132",
|
||||||
|
"sd_version": "6.1.1",
|
||||||
|
"sd_fwid": "0x00B7"
|
||||||
|
},
|
||||||
|
"zephyr": {
|
||||||
|
"variant": "nrf52_adafruit_feather"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"connectivity": [
|
||||||
|
"bluetooth"
|
||||||
|
],
|
||||||
|
"debug": {
|
||||||
|
"jlink_device": "nRF52832_xxAA",
|
||||||
|
"svd_path": "nrf52.svd"
|
||||||
|
},
|
||||||
|
"frameworks": [
|
||||||
|
"arduino",
|
||||||
|
"zephyr"
|
||||||
|
],
|
||||||
|
"name": "Adafruit Bluefruit nRF52832 Feather",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 65536,
|
||||||
|
"maximum_size": 524288,
|
||||||
|
"require_upload_port": true,
|
||||||
|
"speed": 115200,
|
||||||
|
"protocol": "nrfutil",
|
||||||
|
"protocols": [
|
||||||
|
"jlink",
|
||||||
|
"nrfjprog",
|
||||||
|
"nrfutil",
|
||||||
|
"stlink"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"url": "https://www.adafruit.com/product/3406",
|
||||||
|
"vendor": "Adafruit"
|
||||||
|
}
|
1
data/static/index.html
Normal file
1
data/static/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
not yet supported - soon will be included in build
|
Loading…
Reference in New Issue
Block a user