Skip to content

Commit

Permalink
Merge pull request #605 from OpenEVSE/divert_sim_update
Browse files Browse the repository at this point in the history
Updates to build the divert_sim again
  • Loading branch information
KipK authored Apr 29, 2023
2 parents 40029f2 + 1a73ea4 commit 6e8f524
Show file tree
Hide file tree
Showing 33 changed files with 1,872 additions and 124 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/divert_sim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: Build OpenEVSE divert simulator

permissions:
contents: write

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
path: OpenEVSE_WiFi

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/MicroDebug
path: MicroDebug

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/MicroTasks
path: MicroTasks

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/StreamSpy
path: StreamSpy

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/ConfigJson
path: ConfigJson

- uses: actions/checkout@v3
with:
repository: bblanchon/ArduinoJson
path: ArduinoJson
ref: v6.20.1

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/OpenEVSE_Lib
path: OpenEVSE_Lib

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/EpoxyDuino
path: EpoxyDuino

- uses: actions/checkout@v3
with:
repository: JeremyPoulter/ESPAL
path: ESPAL

- uses: ammaraskar/gcc-problem-matcher@master

- name: Build the simulator
run: |
cd OpenEVSE_WiFi/divert_sim
make -j
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@ lib/StreamSpy
lib/MicroTasks

*.bin
divert_sim/epoxyfsdata
divert_sim/epoxyeepromdata
3 changes: 2 additions & 1 deletion divert_sim/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"request": "launch",
"program": "${workspaceFolder}/divert_sim",
"args": [
"-c", "data/test_config.json",
"<", "${workspaceFolder}/data/day1.csv"
],
"stopAtEntry": false,
Expand Down Expand Up @@ -100,4 +101,4 @@
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
}
2 changes: 2 additions & 0 deletions divert_sim/EEPROM.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include <EpoxyEepromEsp.h>
#define EEPROM EpoxyEepromEspInstance
3 changes: 3 additions & 0 deletions divert_sim/FakeDuino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@
extern void setup(void);
extern void loop(void);

#define interrupts()
#define noInterrupts()

#endif
Loading

0 comments on commit 6e8f524

Please sign in to comment.