[CI] Cleaned up CI file
This commit is contained in:
parent
5cba6a2c17
commit
bdb033c3ec
1 changed files with 47 additions and 35 deletions
82
.github/workflows/main.yml
vendored
82
.github/workflows/main.yml
vendored
|
@ -8,27 +8,27 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
Build:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
board:
|
||||
- arduino:avr:uno
|
||||
- arduino:avr:mega
|
||||
- arduino:avr:leonardo
|
||||
- esp8266:esp8266:generic
|
||||
- arduino:samd:arduino_zero_native
|
||||
- esp32:esp32:esp32
|
||||
- STM32:stm32:GenF3
|
||||
- arduino:samd:arduino_zero_native
|
||||
- arduino:sam:arduino_due_x
|
||||
- adafruit:nrf52:feather52832
|
||||
- Intel:arc32:arduino_101
|
||||
- arduino:megaavr:uno2018
|
||||
- SparkFun:apollo3:amap3redboard
|
||||
- arduino:mbed:nano33ble
|
||||
- stm32duino:STM32F1:mapleMini
|
||||
- adafruit:samd:adafruit_feather_m0
|
||||
- arduino-beta:mbed:envie_m4
|
||||
- arduino:megaavr:uno2018
|
||||
- arduino:sam:arduino_due_x
|
||||
- arduino:samd:arduino_zero_native
|
||||
- arduino:samd:arduino_zero_native
|
||||
- adafruit:samd:adafruit_feather_m0
|
||||
- adafruit:nrf52:feather52832
|
||||
- esp32:esp32:esp32
|
||||
- esp8266:esp8266:generic
|
||||
- Intel:arc32:arduino_101
|
||||
- SparkFun:apollo3:amap3redboard
|
||||
- STM32:stm32:GenF3
|
||||
- stm32duino:STM32F1:mapleMini
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
name: ${{ matrix.board }}
|
||||
|
@ -64,22 +64,28 @@ jobs:
|
|||
|
||||
# platform-dependent settings - extra board options, board index URLs, skip patterns etc.
|
||||
if [[ "${{ contains(matrix.board, 'arduino:avr:mega') }}" == "true" ]]; then
|
||||
# Arduino Mega
|
||||
echo "::set-output name=options:::cpu=atmega2560"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
|
||||
echo "::set-output name=options:::xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K"
|
||||
echo "::set-output name=index-url::--additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json"
|
||||
elif [[ "${{ contains(matrix.board, 'arduino:mbed') }}" == "true" ]]; then
|
||||
# Arduino Nano 33 BLE
|
||||
echo "::set-output name=skip-pattern::(HTTP|MQTT).*ino"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'esp32:esp32') }}" == "true" ]]; then
|
||||
python -m pip install pyserial
|
||||
echo "::set-output name=index-url::--additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
|
||||
elif [[ "${{ contains(matrix.board, 'arduino-beta:mbed') }}" == "true" ]]; then
|
||||
# Arduino Portenta H7
|
||||
echo "::set-output name=skip-pattern::(HTTP|MQTT).*ino"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'STM32:stm32') }}" == "true" ]]; then
|
||||
echo "::set-output name=options:::pnum=BLACKPILL_F303CC"
|
||||
echo "::set-output name=index-url::--additional-urls https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"
|
||||
elif [[ "${{ contains(matrix.board, 'arduino:megaavr:uno2018') }}" == "true" ]]; then
|
||||
# Arduino Uno WiFi
|
||||
echo "::set-output name=options:::mode=on"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'adafruit:samd') }}" == "true" ]]; then
|
||||
# Adafruit SAMD
|
||||
echo "::set-output name=options:::usbstack=arduino,debug=off"
|
||||
echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'adafruit:nrf52') }}" == "true" ]]; then
|
||||
# Adafruit Feather nRF52
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3 python3-pip python3-setuptools
|
||||
pip3 install wheel
|
||||
|
@ -88,27 +94,32 @@ jobs:
|
|||
echo "::set-output name=options:::softdevice=s132v6,debug=l0"
|
||||
echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'arduino:megaavr:uno2018') }}" == "true" ]]; then
|
||||
echo "::set-output name=options:::mode=on"
|
||||
elif [[ "${{ contains(matrix.board, 'esp32:esp32') }}" == "true" ]]; then
|
||||
# ESP32
|
||||
python -m pip install pyserial
|
||||
echo "::set-output name=index-url::--additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'esp8266:esp8266') }}" == "true" ]]; then
|
||||
# ESP8266
|
||||
echo "::set-output name=options:::xtal=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,eesz=512K"
|
||||
echo "::set-output name=index-url::--additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json"
|
||||
echo "::set-output name=skip-pattern::(HTTP|MQTT).*ino"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'SparkFun:apollo3') }}" == "true" ]]; then
|
||||
# SparkFun Apollo
|
||||
echo "::set-output name=index-url::--additional-urls https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json"
|
||||
echo "::set-output name=warnings::'none'"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'arduino:mbed') }}" == "true" ]]; then
|
||||
echo "::set-output name=skip-pattern::(HTTP|MQTT).*ino"
|
||||
elif [[ "${{ contains(matrix.board, 'STM32:stm32') }}" == "true" ]]; then
|
||||
# STM32 (official core)
|
||||
echo "::set-output name=options:::pnum=BLACKPILL_F303CC"
|
||||
echo "::set-output name=index-url::--additional-urls https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'stm32duino:STM32F1') }}" == "true" ]]; then
|
||||
# STM32 (unofficial core)
|
||||
echo "::set-output name=options:::bootloader_version=original,cpu_speed=speed_72mhz"
|
||||
echo "::set-output name=index-url::--additional-urls http://dan.drown.org/stm32duino/package_STM32duino_index.json"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'adafruit:samd') }}" == "true" ]]; then
|
||||
echo "::set-output name=options:::usbstack=arduino,debug=off"
|
||||
echo "::set-output name=index-url::--additional-urls https://www.adafruit.com/package_adafruit_index.json"
|
||||
|
||||
elif [[ "${{ contains(matrix.board, 'arduino-beta:mbed') }}" == "true" ]]; then
|
||||
echo "::set-output name=skip-pattern::(HTTP|MQTT).*ino"
|
||||
|
||||
fi
|
||||
|
||||
- name: Install platform
|
||||
|
@ -144,7 +155,7 @@ jobs:
|
|||
fi
|
||||
done
|
||||
|
||||
Doxygen:
|
||||
doxygen:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Doxygen
|
||||
|
@ -157,7 +168,8 @@ jobs:
|
|||
- name: Generate docs
|
||||
run: doxygen Doxyfile
|
||||
|
||||
- uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
|
|
Loading…
Add table
Reference in a new issue