Skip to content

Commit

Permalink
Merge branch 'Development' of https://github.com/BlueAndi/esp-rgb-led…
Browse files Browse the repository at this point in the history
…-matrix into Development
  • Loading branch information
nischneider committed Apr 16, 2024
2 parents 275f39b + e429282 commit 5387360
Show file tree
Hide file tree
Showing 561 changed files with 100,789 additions and 9,338 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
title: "[Bug]"
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Please complete the following information:**
- Development board: [e.g. ESP32-DevKit-v1]
- Version: [e.g. 6.0.0]

**Additional context**
Add any other context about the problem here.

**Log**
If applicable, add serial log output to support the analysis.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: If the others not applicable, use this one to describe your issue.
title: "[Issue]"
labels: ''
assignees: ''

---


20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature]"
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
47 changes: 41 additions & 6 deletions .github/workflows/Development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["esp32doit-devkit-v1", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "adafruit_feather_esp32_v2"]
environment: ["adafruit_feather_esp32_v2", "esp32doit-devkit-v1", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "ulanzi-tc001", "wemos_lolin_s2_mini"]

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
Expand Down Expand Up @@ -65,11 +65,15 @@ jobs:
- name: Build ${{ matrix.environment }} filesystem image
run: platformio run --environment ${{ matrix.environment }} --target buildfs

# Perform static checks and test
# Perform static checks
check:
# The type of runner that the job will run on.
runs-on: ubuntu-latest
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "esp32doit-devkit-v1", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "ulanzi-tc001", "wemos_lolin_s2_mini"]

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -98,11 +102,42 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Perform static checks on target esp32doit-devkit-v1
run: platformio check --environment esp32doit-devkit-v1
- name: Perform static checks on ${{ matrix.environment }}
run: platformio check --environment ${{ matrix.environment }} --fail-on-defect=medium --fail-on-defect=high

# Perform tests
test:
# The type of runner that the job will run on.
runs-on: ubuntu-latest
needs: intro

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Perform static checks on native environment
run: platformio check --environment test
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run tests on native environment
run: platformio test --environment test -vvv
Expand Down
47 changes: 41 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["esp32doit-devkit-v1", "esp32-nodemcu", "az-delivery-devkit-v4", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "adafruit_feather_esp32_v2"]
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
Expand Down Expand Up @@ -83,11 +83,15 @@ jobs:
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/littlefs.bin
retention-days: 5

# Perform static checks and test
# Perform static checks
check:
# The type of runner that the job will run on.
runs-on: ubuntu-latest
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -116,11 +120,42 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Perform static checks on target esp32doit-devkit-v1
run: platformio check --environment esp32doit-devkit-v1
- name: Perform static checks on ${{ matrix.environment }}
run: platformio check --environment ${{ matrix.environment }} --fail-on-defect=medium --fail-on-defect=high

# Perform tests
test:
# The type of runner that the job will run on.
runs-on: ubuntu-latest
needs: intro

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Perform static checks on native environment
run: platformio check --environment test
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run tests on native environment
run: platformio test --environment test
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["esp32doit-devkit-v1", "esp32-nodemcu", "az-delivery-devkit-v4", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "adafruit_feather_esp32_v2"]
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
Expand Down Expand Up @@ -67,19 +67,26 @@ jobs:
- name: Compile ${{ matrix.environment }} firmware
run: platformio run --environment ${{ matrix.environment }}

- name: Deploy ${{ matrix.environment }} firmware
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.environment }}_firmware
path: |
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/firmware.bin
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/bootloader.bin
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/partitions.bin
retention-days: 5

- name: Build ${{ matrix.environment }} filesystem image
run: platformio run --environment ${{ matrix.environment }} --target buildfs

- name: Deploy ${{ matrix.environment }}
uses: actions/upload-artifact@v2
- name: Deploy ${{ matrix.environment }} filesystem image
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.environment }}
name: ${{ matrix.environment }}_filesystem
path: |
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/firmware.bin
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/spiffs.bin
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/littlefs.bin
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/bootloader.bin
${{ github.workspace }}/.pio/build/${{ matrix.environment }}/partitions.bin
retention-days: 5

# Deploy release artifacts
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 - 2023 Andreas Merkle <[email protected]>
Copyright (c) 2019 - 2024 Andreas Merkle <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 5387360

Please sign in to comment.