Skip to content

Commit

Permalink
Merge pull request #74 from kamiyaowl/fix_#73
Browse files Browse the repository at this point in the history
close #73 support arduino-cli v0.11.0
  • Loading branch information
kamiyaowl authored Jul 19, 2020
2 parents d8d0454 + 1a5ceaa commit abec68b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: wfh_monitor.zip
path: wfh_monitor.ino.Seeeduino.samd.seeed_wio_terminal.*
path: wfh_monitor.ino.uf2
16 changes: 9 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,16 @@ dmypy.json
.pyre/

# build binary
*.bin
*.elf
*.ino.bin
*.ino.elf
*.ino.hex
*.ino.map
*.ino.uf2

cache/
sketch/
bazel-*
wfh_monitor.ino.Seeeduino.samd.seeed_wio_terminal.uf2

# doxygen
html
latex

# build cache
cache
latex
4 changes: 2 additions & 2 deletions arduino-cli.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN arduino-cli core install Seeeduino:[email protected] --additional-urls https://file
RUN arduino-cli core list

# create work directory
RUN mkdir /work
WORKDIR /work
RUN mkdir /wfh_monitor
WORKDIR /wfh_monitor

CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
arduino-cli compile -b Seeeduino:samd:seeed_wio_terminal ./wfh_monitor.ino --verbose --log-level trace
arduino-cli compile -b Seeeduino:samd:seeed_wio_terminal ./wfh_monitor.ino --output-dir ./ --verbose --log-level trace
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
arduino-cli compile -b Seeeduino:samd:seeed_wio_terminal ./wfh_monitor.ino --verbose --log-level trace
python ./utils/uf2/utils/uf2conv.py -c -b 0x4000 -o ./wfh_monitor.ino.Seeeduino.samd.seeed_wio_terminal.uf2 ./wfh_monitor.ino.Seeeduino.samd.seeed_wio_terminal.bin
arduino-cli compile -b Seeeduino:samd:seeed_wio_terminal ./wfh_monitor.ino --output-dir ./ --verbose --log-level trace
python ./utils/uf2/utils/uf2conv.py -c -b 0x4000 -o ./wfh_monitor.ino.uf2 ./wfh_monitor.ino.bin
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: .
dockerfile: arduino-cli.Dockerfile
volumes:
- ./:/work
- ./:/wfh_monitor
- ./lib:/root/Arduino/libraries:ro
command: >
bash -c "chmod +x ./build.sh && ./build.sh"
Expand All @@ -15,7 +15,7 @@ services:
context: .
dockerfile: arduino-cli.Dockerfile
volumes:
- ./:/work
- ./:/wfh_monitor
- ./lib:/root/Arduino/libraries:ro
devices:
- /dev/ttyS10:/dev/ttyTarget # ttyS10を自分のターゲットに置き換える
Expand All @@ -26,6 +26,6 @@ services:
context: .
dockerfile: ./doxygen.Dockerfile
volumes:
- ./:/work
- ./:/wfh_monitor
- ./lib:/root/Arduino/libraries:ro
command: doxygen
4 changes: 2 additions & 2 deletions doxygen.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y doxygen graphviz git

# create work directory
RUN mkdir /work
WORKDIR /work
RUN mkdir /wfh_monitor
WORKDIR /wfh_monitor

CMD ["/bin/sh"]

0 comments on commit abec68b

Please sign in to comment.