Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to build the divert_sim again #605

Merged
merged 14 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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