Skip to content

Commit

Permalink
Compile micro8 mhz (#155)
Browse files Browse the repository at this point in the history
* .github\workflows\unittest.yml

- added radino board with incicuit board files
- Added dependency between unittest and deploy jobs to run in sequence
- renamed firmware to be compatible with flash command from module

* Update README.md
Updated badge in readme
  • Loading branch information
sidey79 authored Dec 18, 2020
1 parent 48698b0 commit ffbedc4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 37 deletions.
74 changes: 39 additions & 35 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,55 +47,59 @@ jobs:
ls -l
./bin/TestProject
deploy:
needs: unittest
strategy:
fail-fast: false
matrix:
BOARD:
- nano328
- leonardo
#- radino
- minicul
- promini
- ESP32
RECEIVER:
- cc1101
- simple
exclude:
- BOARD: radino
RECEIVER: simple
- BOARD: promini
RECEIVER: cc1101
- BOARD: minicul
RECEIVER: simple
- BOARD: leonardo
RECEIVER: simple
#BOARD:
# - nano328
# - micro
# #- radino
# - minicul
# - promini
# - ESP32
# RECEIVER:
# - cc1101
# - simple
# exclude:
# - BOARD: radino
# RECEIVER: simple
# - BOARD: promini
# RECEIVER: cc1101
# - BOARD: minicul
# RECEIVER: simple
# - BOARD: micro
# RECEIVER: simple
include:
- BOARD: nano328
- BOARD: nano
RECEIVER: cc1101
arduino-platform: 'arduino:avr'
fqbn: 'arduino:avr:nano:cpu=atmega328'
compilerflag: '\"-DOTHER_BOARD_WITH_CC1101=1\"'
- BOARD: nano328
RECEIVER: simple
RECEIVER: ""
arduino-platform: 'arduino:avr'
fqbn: 'arduino:avr:nano:cpu=atmega328'
# - BOARD: radino
# arduino-platform: 'arduino:avr In-Circuit:avr'
# fqbn: 'In-Circuit:avr:radinoCC1101'
# boardurl: '--additional-urls=http://library.radino.cc/Arduino_1_8/package_radino_radino32_index.json'
# compilerflag: \"-DARDUINO_AVR_ICT_BOARDS_ICT_BOARDS_AVR_RADINOCC1101=1\" \"-DUSB_VID=0x2341\" \"-DUSB_PID=0x8036\"
- BOARD: leonardo
- BOARD: radino
RECEIVER: cc1101
arduino-platform: 'arduino:avr'
fqbn: 'arduino:avr:leonardo'
compilerflag: \"-DARDUINO_AVR_ICT_BOARDS_ICT_BOARDS_AVR_RADINOCC1101=1\"
arduino-platform: 'arduino:avr In-Circuit:avr'
fqbn: 'In-Circuit:avr:radinoCC1101'
boardurl: '--additional-urls=http://library.radino.cc/Arduino_1_8/package_radino_radino32_index.json'
compilerflag: \"-DARDUINO_RADINOCC1101=1\"
build_param1: "compiler.path={runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path}/bin/"
#- BOARD: radino
# RECEIVER: cc1101
# arduino-platform: 'arduino:avr'
# fqbn: 'arduino:avr:micro'
# compilerflag: \"-DARDUINO_RADINOCC1101=1\"
# build_param1: \"build.f_cpu=8000000L\"
- BOARD: minicul
RECEIVER: cc1101
arduino-platform: 'arduino:avr'
fqbn: 'arduino:avr:pro:cpu=8MHzatmega328'
compilerflag: \"-DARDUINO_ATMEGA328P_MINICUL=1\"
- BOARD: promini
RECEIVER: simple
RECEIVER: ""
arduino-platform: 'arduino:avr'
fqbn: 'arduino:avr:pro:cpu=8MHzatmega328'
- BOARD: ESP32
Expand All @@ -105,7 +109,7 @@ jobs:
compilerflag: \"-DOTHER_BOARD_WITH_CC1101=1\"
boardurl: '--additional-urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json'
- BOARD: ESP32
RECEIVER: simple
RECEIVER: ""
arduino-platform: 'esp32:esp32'
fqbn: 'esp32:esp32:esp32:FlashMode=qio,FlashFreq=80'
boardurl: '--additional-urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json'
Expand All @@ -116,7 +120,7 @@ jobs:
compilerflag: \"-DOTHER_BOARD_WITH_CC1101=1\"
boardurl: '--additional-urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json'
- BOARD: ESP8266
RECEIVER: simple
RECEIVER: ""
arduino-platform: 'esp8266:[email protected]'
fqbn: 'esp8266:esp8266:generic:xtal=80,eesz=1M64,FlashMode=qio,FlashFreq=40,dbg=Serial,lvl=CORE'
boardurl: '--additional-urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json'
Expand All @@ -127,7 +131,7 @@ jobs:
compilerflag: \"-DOTHER_BOARD_WITH_CC1101=1\"
boardurl: '--additional-urls=https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json'
- BOARD: MAPLEMINI_F103CB
RECEIVER: simple
RECEIVER: ""
arduino-platform: 'STM32:stm32'
fqbn: 'STM32:stm32:GenF1:pnum=MAPLEMINI_F103CB'
boardurl: '--additional-urls=https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json'
Expand All @@ -152,7 +156,7 @@ jobs:
- name: Compile sketch
id: compile_sketch
run: |
arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property="compiler.cpp.extra_flags=${{ matrix.compilerflag }}" ${{ matrix.boardurl }} --output-dir=$GITHUB_WORKSPACE $GITHUB_WORKSPACE/src/arduino-ide/SIGNALDuino/SIGNALDuino.ino
arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property="compiler.cpp.extra_flags=${{ matrix.compilerflag }}" ${{ matrix.boardurl }} --build-property="${{ matrix.build_param1 }}" --output-dir=$GITHUB_WORKSPACE $GITHUB_WORKSPACE/src/arduino-ide/SIGNALDuino/SIGNALDuino.ino
echo "::set-output name=fileext::$(test -f $GITHUB_WORKSPACE/SIGNALDuino.ino.bin && echo "bin" || echo "hex")"
# - name: rename firmwarefile
# if: ${{ matrix.BOARD == 'ESP32' }}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SIGNALDuino uC v3.5.0-development with cc1101 support
[![Build Status](https://travis-ci.org/RFD-FHEM/SIGNALDuino.svg?branch=master)](https://travis-ci.org/RFD-FHEM/SIGNALDuino)
Development: ![unittest](https://github.com/RFD-FHEM/SIGNALDuino/workflows/unittest/badge.svg?branch=dev-r3.5_xFSK)

Master: ![unittest](https://github.com/RFD-FHEM/SIGNALDuino/workflows/unittest/badge.svg?branch=master)
### Getting started


Expand Down Expand Up @@ -60,4 +61,4 @@ First, sorry. This software is not perfect.
4. Create a branch (git checkout -b my_branch)
5. Commit your changes (git commit -am "<some description>")
6 .Push to a developer branch (git push dev-<xyz >my_branch)
7. Open a Pull Request, put some useful informations there, what your extension does and why we should add it, reference to the open issues which are fixed whith this pull requet.
7. Open a Pull Request, put some useful informations there, what your extension does and why we should add it, reference to the open issues which are fixed whith this pull requet.

0 comments on commit ffbedc4

Please sign in to comment.