|
| 1 | +name: CompileTests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ "main", "dev" ] |
| 6 | + pull_request: |
| 7 | + branches: [ "main" ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + |
| 11 | + buildAllExamples: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + board: |
| 16 | + - uno |
| 17 | + example: |
| 18 | + - ./examples/BAE910_device/BAE910_device.ino |
| 19 | +# - ./examples/DS18B20_asInterface/DS18B20_asInterface.ino # needs I2C |
| 20 | + - ./examples/DS18B20_thermometer/DS18B20_thermometer.ino |
| 21 | + - ./examples/DS2401_serial/DS2401_serial.ino |
| 22 | + - ./examples/DS2405_switch/DS2405_switch.ino |
| 23 | + - ./examples/DS2408_switch/DS2408_switch.ino |
| 24 | + - ./examples/DS2413_switch/DS2413_switch.ino |
| 25 | + - ./examples/DS2423_RAM/DS2423_RAM.ino |
| 26 | + - ./examples/DS2430_EEPROM/DS2430_EEPROM.ino |
| 27 | + - ./examples/DS2431_EEPROM/DS2431_EEPROM.ino |
| 28 | + - ./examples/DS2433_EEPROM/DS2433_EEPROM.ino |
| 29 | + - ./examples/DS2434_IBM701c/DS2434_IBM701c.ino |
| 30 | + - ./examples/DS2438_battMon/DS2438_battMon.ino |
| 31 | + - ./examples/DS2450_ADC/DS2450_ADC.ino |
| 32 | + - ./examples/DS2502_DELLCHG/DS2502_DELLCHG.ino |
| 33 | + - ./examples/DS2502_EEPROM/DS2502_EEPROM.ino |
| 34 | + - ./examples/DS2506_EEPROM/DS2506_EEPROM.ino |
| 35 | + - ./examples/DS2890_poti/DS2890_poti.ino |
| 36 | + - ./examples/OneWireHubTest/OneWireHubTest.ino |
| 37 | + |
| 38 | + steps: |
| 39 | + - name: Checkout 🛎️ |
| 40 | + uses: actions/checkout@v3 |
| 41 | + - name: Set up Python 🐍 |
| 42 | + uses: actions/setup-python@v4 |
| 43 | + with: |
| 44 | + python-version: '3.x' |
| 45 | + - name: Install dependencies 🔧 |
| 46 | + run: sudo apt install cmake build-essential |
| 47 | + - name: Install platformio 🔧 |
| 48 | + run: pip install -U platformio |
| 49 | + |
| 50 | + - name: compile "${{ matrix.example }} for "${{ matrix.board }}" 🧱 |
| 51 | + run: "platformio ci --lib='.' -b ${{ matrix.board }} ${{ matrix.example }}" |
| 52 | + |
| 53 | + build4TargetsBig: |
| 54 | + runs-on: ubuntu-latest |
| 55 | + strategy: |
| 56 | + matrix: |
| 57 | + board: |
| 58 | + - uno |
| 59 | + #- teensy20 |
| 60 | + - teensy30 |
| 61 | + - teensy36 |
| 62 | + - esp01 |
| 63 | + - nodemcuv2 |
| 64 | + - espduino |
| 65 | + #- espino32 # not capable of c++11? |
| 66 | + #- esp32dev # not capable of c++11? |
| 67 | + |
| 68 | +### Travis - LIST - TODO: find more and extend |
| 69 | +# due # arduino due -> current tick-counting implementation not compatible |
| 70 | +# zero # arduino zero -> current tick-counting implementation not compatible |
| 71 | +# teensy30 teensy31 teensy35 teensy36 # teensy 3 |
| 72 | +# teensy20 teensy20pp # teensy 2 -> crc-lib has linker problem in platformIO but works in arduino-sw |
| 73 | +# esp01 nodemcuv2 espduino # esp8266 |
| 74 | +# espino32 esp32dev # esp8266 |
| 75 | +# rfduino # nrf51 -> will probably fail due to old gcc 4.8.3 with artificial limit to c++98 |
| 76 | +# lenny uno_pic32 # pic32mx -> error: pic32-g++ not found |
| 77 | +# genuino101 # intel curie -> value_ipl is unknown for this hardware |
| 78 | +# attiny88 attiny84 # attiny -> linker error for unknown virtual function |
| 79 | +# digispark-tiny # attiny |
| 80 | + |
| 81 | + example: |
| 82 | + - ./examples/OneWireHubTest/OneWireHubTest.ino |
| 83 | + |
| 84 | + steps: |
| 85 | + - name: Checkout 🛎️ |
| 86 | + uses: actions/checkout@v3 |
| 87 | + - name: Set up Python 🐍 |
| 88 | + uses: actions/setup-python@v4 |
| 89 | + with: |
| 90 | + python-version: '3.x' |
| 91 | + - name: Install dependencies 🔧 |
| 92 | + run: sudo apt install cmake build-essential |
| 93 | + - name: Install platformio 🔧 |
| 94 | + run: pip install -U platformio |
| 95 | + |
| 96 | + - name: compile "${{ matrix.example }} for "${{ matrix.board }}" 🧱 |
| 97 | + run: "platformio ci --lib='.' -b ${{ matrix.board }} ${{ matrix.example }}" |
| 98 | + |
| 99 | + build4TargetsSmall: |
| 100 | + runs-on: ubuntu-latest |
| 101 | + strategy: |
| 102 | + matrix: |
| 103 | + board: |
| 104 | + - digispark-tiny |
| 105 | + example: |
| 106 | + - ./examples/DS2401_serial/DS2401_serial.ino |
| 107 | + |
| 108 | + steps: |
| 109 | + - name: Checkout 🛎️ |
| 110 | + uses: actions/checkout@v3 |
| 111 | + - name: Set up Python 🐍 |
| 112 | + uses: actions/setup-python@v4 |
| 113 | + with: |
| 114 | + python-version: '3.x' |
| 115 | + - name: Install dependencies 🔧 |
| 116 | + run: sudo apt install cmake build-essential |
| 117 | + - name: Install platformio 🔧 |
| 118 | + run: pip install -U platformio |
| 119 | + |
| 120 | + - name: compile "${{ matrix.example }} for "${{ matrix.board }}" 🧱 |
| 121 | + run: "platformio ci --lib='.' -b ${{ matrix.board }} ${{ matrix.example }}" |
| 122 | + |
| 123 | + testsuite: |
| 124 | + runs-on: ubuntu-latest |
| 125 | + |
| 126 | + steps: |
| 127 | + - name: Checkout 🛎️ |
| 128 | + uses: actions/checkout@v3 |
| 129 | + - name: Install dependencies 🔧 |
| 130 | + run: sudo apt install cmake build-essential |
| 131 | + |
| 132 | + - name: Run primitive testsuite 🧱 |
| 133 | + run: | |
| 134 | + mkdir build |
| 135 | + cd ./build |
| 136 | + cmake .. |
| 137 | + make |
| 138 | + ./OneWireHub |
0 commit comments