Skip to content

Commit

Permalink
Adjusting partition table for usuage of EspressIF 32 development plat…
Browse files Browse the repository at this point in the history
…form V6.7.0 (or later) (#78)

* Create cmake-multi-platform.yml

tryout1

* Update cmake-multi-platform.yml

* Update cmake-multi-platform.yml

* Update cmake-multi-platform.yml

* Update cmake-multi-platform.yml

* Update cmake-multi-platform.yml

* edited and renamed github action workflow file

* updated build definition

* adjusting/increasing the size of app partition and decreasing the size if the data partition, fixing to espressif32 dev platform ^6.7.0 (^ = use latest without breaking changes to the given version), adding a minimum build defintion as GitHub Action YAML file.

* fixing build def

* Removed @^6.7.0 from platform.ini
  • Loading branch information
Martinius79 authored Jul 24, 2024
1 parent b11533c commit 35987ee
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/pio-build-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: EleksTubeHAX builds with PlatformIO on multiple platforms

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false

# Set up a matrix to run the following 3 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Copy user_defines.h file on windows
run: copy "./EleksTubeHAX_pio/src/_USER_DEFINES - empty.h" "./EleksTubeHAX_pio/src/_USER_DEFINES.h"
if: runner.os == 'Windows'

- name: Copy user_defines.h file on linux
run: cp "./EleksTubeHAX_pio/src/_USER_DEFINES - empty.h" "./EleksTubeHAX_pio/src/_USER_DEFINES.h"
if: runner.os == 'Linux'

- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO Project for 4MB flash
run: pio run --environment esp32dev
working-directory: ./EleksTubeHAX_pio
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
_USER_DEFINES.h
*backup*
*aljaz*
\.vscode
/.vscode
4 changes: 2 additions & 2 deletions EleksTubeHAX_pio/partition_noOta_1Mapp_3Mspiffs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, factory, 0x10000, 0x100000,
spiffs, data, spiffs, 0x110000,0x2E0000,
app0, app, factory, 0x10000, 0x120000,
spiffs, data, spiffs, 0x130000,0x2C0000,
coredump, data, coredump,0x3F0000,0x10000,

0 comments on commit 35987ee

Please sign in to comment.