Skip to content

add infineon:xmc

add infineon:xmc #80

Workflow file for this run

name: Arduino CI
# on which event should we start push, pullrequest or schedule dispatches
on:
- push
- pull_request
jobs:
build:
# we run this on selhosted runner, use labels to be more specific
runs-on: self-hosted
# board_manager:
# additional_urls:
# https://github.com/Infineon/XMC-for-Arduino/releases/latest/download/package_infineon_index.json
strategy:
matrix:
# example: [
# examples/E9000SPC,
# examples/readAngleSpeedRevolutions,
# examples/readAngleTest,
# examples/readAngleValueProcessing,
# examples/readMultipleRegisters,
# examples/readSpeedProcessing,
# examples/sensorRegisters,
# examples/sensorType,
# examples/testSensorMainValues,
# examples/useMultipleSensors,
# examples/writeRegisters
# ]
# board packages we want to run
arduino-platform: [
"arduino:avr",
"infineon:xmc"
]
include:
- arduino-platform: "arduino:avr"
fqbn:
- arduino:avr:uno
- infineon:xmc:XMC1100_XMC2GO
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Install platform
run: |
arduino-cli core update-index
arduino-cli core install ${{ matrix.arduino-platform }}
# - name: Install repo as library
# run: |
# echo $HOME
# echo $GITHUB_WORKSPACE
# mkdir -p "$HOME/Arduino/libraries"
# ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/magnetic-angle-sensor
# - name: Compile Sketch
# run: |
# # chmod -R 777 /tmp/arduino/
# arduino-cli compile --fqbn ${{ matrix.fqbn }} --libraries="." --libraries="$HOME/Arduino/libraries/." ${{ matrix.example }}