Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63cd12b6f6 | |||
| 6a798f8a89 |
@@ -18,7 +18,10 @@ jobs:
|
|||||||
run: pip install platformio
|
run: pip install platformio
|
||||||
|
|
||||||
- name: Build firmware
|
- name: Build firmware
|
||||||
run: pio run
|
run: |
|
||||||
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
|
echo "Building version $VERSION"
|
||||||
|
PLATFORMIO_BUILD_FLAGS="-D CI_VERSION=$VERSION" pio run
|
||||||
|
|
||||||
- name: Create Release and Upload Firmware
|
- name: Create Release and Upload Firmware
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
|||||||
18
src/config.h
18
src/config.h
@@ -2,11 +2,19 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
namespace Config {
|
namespace Config {
|
||||||
// Updated by Karl on every version release (see
|
// Updated by CI on every version release (see
|
||||||
// CLAUDE.md workflow "Standard Workflow: Push & Release") - shown
|
// .gitea/workflows/release.yml) - shown in the info screen
|
||||||
// in the info screen (Menu > System > Info) and must match the
|
// (Menu > System > Info). Locally built firmware shows "custom".
|
||||||
// corresponding Git tag.
|
// The STR() macro converts the raw -D define to a string literal
|
||||||
constexpr const char* APP_VERSION = "3.6.3";
|
// (needed because PlatformIO strips quotes from build flags).
|
||||||
|
#define STR_HELPER(x) #x
|
||||||
|
#define STR(x) STR_HELPER(x)
|
||||||
|
|
||||||
|
#ifdef CI_VERSION
|
||||||
|
constexpr const char* APP_VERSION = STR(CI_VERSION);
|
||||||
|
#else
|
||||||
|
constexpr const char* APP_VERSION = "custom";
|
||||||
|
#endif
|
||||||
|
|
||||||
// Display brightness (Menu > System > Brightness), in percent.
|
// Display brightness (Menu > System > Brightness), in percent.
|
||||||
// MIN intentionally not 0 - a completely dark display could otherwise
|
// MIN intentionally not 0 - a completely dark display could otherwise
|
||||||
|
|||||||
Reference in New Issue
Block a user