Skip to content

Commit f764ece

Browse files
committed
GitHub Action to build the divert simulator
1 parent dcfae82 commit f764ece

File tree

2 files changed

+73
-6
lines changed

2 files changed

+73
-6
lines changed

.github/workflows/divert_sim.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Build OpenEVSE divert simulator
4+
5+
permissions:
6+
contents: write
7+
8+
on:
9+
push:
10+
branches:
11+
- master
12+
pull_request:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
path: OpenEVSE_WiFi
22+
23+
- uses: actions/checkout@v2
24+
with:
25+
repository: JeremyPoulter/MicroDebug
26+
path: MicroDebug
27+
28+
- uses: actions/checkout@v2
29+
with:
30+
repository: JeremyPoulter/MicroTasks
31+
path: MicroTasks
32+
33+
- uses: actions/checkout@v2
34+
with:
35+
repository: JeremyPoulter/StreamSpy
36+
path: StreamSpy
37+
38+
- uses: actions/checkout@v2
39+
with:
40+
repository: JeremyPoulter/ConfigJson
41+
path: ConfigJson
42+
43+
- uses: actions/checkout@v2
44+
with:
45+
repository: JeremyPoulter/ArduinoJson
46+
path: ArduinoJson
47+
48+
- uses: actions/checkout@v2
49+
with:
50+
repository: JeremyPoulter/OpenEVSE_Lib
51+
path: OpenEVSE_Lib
52+
53+
- uses: actions/checkout@v2
54+
with:
55+
repository: JeremyPoulter/EpoxyFS
56+
path: EpoxyFS
57+
58+
- name: Build the simulator
59+
run: |
60+
cd OpenEVSE_WiFi/divert_sim
61+
make -j

divert_sim/Makefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
CPP := g++
22

3-
BASE_ENV = openevse_wifi_v1
43

54
EPOXY_DUINO_DIR := ../../EpoxyDuino
65
EPOXY_CORE_PATH ?= $(EPOXY_DUINO_DIR)/cores/epoxy
76
EPOXY_LIB_DIR ?= $(EPOXY_DUINO_DIR)/libraries
87

9-
ARDUINO_LIB_DIR := ../.pio/libdeps/$(BASE_ENV)
8+
#BASE_ENV = openevse_wifi_v1
9+
#ARDUINO_LIB_DIR := ../.pio/libdeps/$(BASE_ENV)
10+
ARDUINO_LIB_DIR := ../..
1011

1112
CPPFLAGS := \
1213
-I . \
1314
-I ../include \
1415
-I ../src \
1516
-I $(EPOXY_CORE_PATH) \
16-
-I $(EPOXY_LIB_DIR)/MicroTasks/src \
17-
-I "$(ARDUINO_LIB_DIR)/Micro Debug/src" \
17+
-I $(ARDUINO_LIB_DIR)/MicroDebug/src \
1818
-I $(ARDUINO_LIB_DIR)/MicroTasks/include \
1919
-I $(ARDUINO_LIB_DIR)/StreamSpy/src \
20+
-I $(ARDUINO_LIB_DIR)/ConfigJson/src \
2021
-I $(ARDUINO_LIB_DIR)/ArduinoJson/src \
21-
-I $(ARDUINO_LIB_DIR)/OpenEVSE/src \
22+
-I $(ARDUINO_LIB_DIR)/OpenEVSE_Lib/src \
2223
-I $(EPOXY_LIB_DIR)/EpoxyFS/src \
2324
-ggdb \
2425
-D DIVERT_SIM \
@@ -53,6 +54,9 @@ OPENEVSE_LIB_OBJ := \
5354
openevse.o \
5455
RapiSender.o
5556

57+
#CONFIG_JSON_OBJ := \
58+
# ConfigJson.o
59+
5660
STREAM_SPY_OBJ := \
5761
StreamSpy.o \
5862

@@ -87,6 +91,7 @@ EPOXY_FS_OBJ := \
8791

8892
OBJ := \
8993
$(MICRO_TASKS_OBJ) \
94+
$(CONFIG_JSON_OBJ) \
9095
$(STREAM_SPY_OBJ) \
9196
$(OPENEVSE_LIB_OBJ) \
9297
$(OPENEVSE_WIFI_OBJ) \
@@ -98,8 +103,9 @@ VPATH := \
98103
. \
99104
../src \
100105
$(EPOXY_CORE_PATH) \
101-
$(ARDUINO_LIB_DIR)/OpenEVSE/src \
106+
$(ARDUINO_LIB_DIR)/OpenEVSE_Lib/src \
102107
$(ARDUINO_LIB_DIR)/MicroTasks/src \
108+
$(ARDUINO_LIB_DIR)/ConfigJson/src \
103109
$(ARDUINO_LIB_DIR)/StreamSpy/src \
104110
$(EPOXY_LIB_DIR)/EpoxyFS/src
105111

0 commit comments

Comments
 (0)