fix build

This commit is contained in:
2026-08-02 00:04:02 +02:00
parent 6585bf985a
commit f239245318
2 changed files with 17 additions and 15 deletions
+17 -4
View File
@@ -1,20 +1,33 @@
name: PlatformIO CI name: PlatformIO CI
on: [push]
on: [push, pull_request]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
path: | path: |
~/.cache/pip ~/.cache/pip
~/.platformio/.cache ~/.platformio/.cache
key: ${{ runner.os }}-pio key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core - name: Install PlatformIO Core
run: pip install --upgrade platformio run: pip install --upgrade platformio
# secrets.h is git-ignored on purpose (contains real WiFi credentials).
# For CI, we generate a throwaway secrets.h from the example file so
# the build compiles without ever needing real credentials or storing
# any secret files in the repo.
- name: Generate placeholder secrets.h for CI build
run: cp include/secrets.h.example include/secrets.h
- name: Build PlatformIO Project - name: Build PlatformIO Project
run: pio run run: pio run
-11
View File
@@ -1,11 +0,0 @@
#pragma once
// Copy this file to secrets.h and fill in your real values.
// secrets.h is git-ignored and must never be committed.
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
#define WEATHER_API_URL "http://<host>:<port>/api/weather"
#define CALENDAR_API_URL "http://<host>:<port>/api/events"
#define DEPARTURES_API_URL "http://<host>:<port>/api/departures"