Skip to content

Commit 37dbffb

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d40fb9c + f72505e commit 37dbffb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3122
-110
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ permissions:
66
contents: write
77

88
on:
9-
workflow_dispatch:
10-
inputs:
11-
v2_ref:
12-
required: true
13-
description: The branch/tag for the v2 UI
14-
default: master
15-
169
push:
1710
branches:
1811
- master
@@ -34,7 +27,7 @@ jobs:
3427
run: echo "github.ref_name = '${{ github.ref_name }}'"
3528

3629
build:
37-
name: Build ${{ matrix.env }} with ${{ matrix.gui.name }}
30+
name: Build ${{ matrix.env }}
3831
runs-on: ubuntu-latest
3932

4033
strategy:
@@ -57,25 +50,16 @@ jobs:
5750
- heltec_esp32-wifi-lora-v2
5851
- wt32-eth01
5952
- esp32-c3-devkitc-02
60-
gui:
61-
- name: gui-v2
62-
repo: OpenEVSE/openevse-gui-v2
63-
build_flags: ""
64-
ref: ${{ inputs.v2_ref }}
53+
- elecrow_esp32_hmi
54+
- elecrow_esp32_hmi_dev
55+
- openevse_wifi_tft_v1
56+
- openevse_wifi_tft_v1_dev
6557

6658
steps:
6759
- uses: ammaraskar/gcc-problem-matcher@master
6860

6961
- uses: actions/checkout@v4
7062

71-
- name: Checkout GUI
72-
uses: actions/checkout@v4
73-
with:
74-
repository: ${{ matrix.gui.repo }}
75-
path: ${{ matrix.gui.name }}
76-
ref: ${{ matrix.gui.ref }}
77-
submodules: recursive
78-
7963
- name: Cache pip
8064
uses: actions/cache@v4
8165
with:
@@ -100,26 +84,8 @@ jobs:
10084
python -m pip install --upgrade pip
10185
pip install --upgrade platformio
10286
103-
- name: Set up Node JS
104-
uses: actions/setup-node@v4
105-
with:
106-
node-version: '16'
107-
108-
- name: Install dependencies
109-
run: |
110-
cd ${{ matrix.gui.name }}
111-
npm install
112-
113-
- name: Build GUI
114-
run: |
115-
cd ${{ matrix.gui.name }}
116-
npm run build
117-
11887
- name: Run PlatformIO
11988
run: pio run -e ${{ matrix.env }}
120-
env:
121-
GUI_NAME: ${{ matrix.gui.name }}
122-
PLATFORMIO_BUILD_FLAGS: ${{ matrix.gui.build_flags }}
12389

12490
- name: Upload output to GitHub
12591
uses: actions/upload-artifact@v4
@@ -161,7 +127,7 @@ jobs:
161127
162128
- name: Upload assets to release
163129
if: startsWith(github.ref_name, 'v')
164-
uses: "softprops/action-gh-release@v1"
130+
uses: "softprops/action-gh-release@v2"
165131
with:
166132
prerelease: true
167133
name: "${{ github.ref_name }}"

.github/workflows/build_gui.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Build OpenEVSE GUI
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
on:
10+
workflow_dispatch:
11+
12+
pull_request:
13+
paths:
14+
- gui-v2
15+
- gui-tft/*
16+
17+
jobs:
18+
build:
19+
name: Build the static GUI files
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout the repository
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
ref: ${{ github.head_ref }}
28+
token: ${{ secrets.DEPENDABOT_PAT }}
29+
30+
- name: Cache pip
31+
uses: actions/cache@v4
32+
with:
33+
path: ~/.cache/pip
34+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
35+
restore-keys: |
36+
${{ runner.os }}-pip-
37+
38+
- name: Cache PlatformIO
39+
uses: actions/cache@v4
40+
with:
41+
path: ~/.platformio
42+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
43+
44+
- name: Set up Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: '3.x'
48+
49+
- name: Install PlatformIO
50+
run: |
51+
python -m pip install --upgrade pip
52+
pip install --upgrade platformio
53+
54+
- name: Set up Node JS
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: '20'
58+
59+
- name: Install dependencies
60+
run: |
61+
cd gui-v2
62+
npm install
63+
64+
- name: Build GUI
65+
run: |
66+
cd gui-v2
67+
npm run build
68+
69+
- name: Delete the existing pre-built GUI files
70+
run: |
71+
rm -fr src/lcd_static
72+
rm -f src/web_static/*.h
73+
74+
- name: Run PlatformIO
75+
run:
76+
pio run
77+
78+
- name: Push any changed files
79+
uses: stefanzweifel/git-auto-commit-action@v5
80+
with:
81+
commit_message: "Update of pre-built GUI files"

.github/workflows/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PlatformIO Dependabot
2+
3+
on:
4+
workflow_dispatch: # option to manually trigger the workflow
5+
schedule:
6+
# Runs every day at 00:00
7+
- cron: '0 0 * * *'
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
dependabot:
15+
runs-on: ubuntu-latest
16+
name: run PlatformIO Dependabot
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: run PlatformIO Dependabot
21+
uses: peterus/platformio_dependabot@v1
22+
with:
23+
github_token: ${{ secrets.DEPENDABOT_PAT }}

.github/workflows/release_validation.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,34 @@ jobs:
1717
submodules: recursive
1818

1919
### Check the pre-built GUI files are up-to-date
20+
- name: Cache pip
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/.cache/pip
24+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
25+
restore-keys: |
26+
${{ runner.os }}-pip-
27+
28+
- name: Cache PlatformIO
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.platformio
32+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
33+
34+
- name: Set up Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: '3.x'
38+
39+
- name: Install PlatformIO
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install --upgrade platformio
2043
2144
- name: Set up Node JS
2245
uses: actions/setup-node@v4
2346
with:
24-
node-version: '16'
47+
node-version: '20'
2548

2649
- name: Install dependencies
2750
run: |
@@ -33,6 +56,10 @@ jobs:
3356
cd gui-v2
3457
npm run build
3558
59+
- name: Run PlatformIO
60+
run:
61+
pio run
62+
3663
- name: Check the pre-built GUI files are up-to-date
3764
run: |
3865
set +e

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ lib/MicroTasks
9292
*.bin
9393
divert_sim/epoxyfsdata
9494
divert_sim/epoxyeepromdata
95+
*.pem

BootScreen.png

21.6 KB
Loading

ChargeScreen.png

11.4 KB
Loading

gui-tft/button_bar.png

10.2 KB
Loading

gui-tft/car_connected.png

572 Bytes
Loading

gui-tft/car_disconnected.png

666 Bytes
Loading

0 commit comments

Comments
 (0)