Skip to content

Commit

Permalink
Some more variables
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafFilies committed Nov 27, 2023
1 parent deb53eb commit 6f93ccd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/arduino_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ jobs:
]

include:
- lib: "magnetic-angle-sensor"

- platform: "arduino:avr"
fqbn: arduino:avr:uno
- platform: "infineon:xmc"
fqbn: Infineon:xmc:XMC1100_XMC2GO


steps:
- name: Checkout actions
uses: actions/checkout@v4
Expand All @@ -55,11 +52,10 @@ jobs:
# setup links inside the selfhosted runner for correct directory setup
- name: Set and check environment, install repos
run: |
export REPO="$(basename "$GITHUB_REPOSITORY")"
ln -sfn /opt/XMC-for-Arduino ~/.arduino15/packages/Infineon
mkdir -p "$HOME/Arduino/libraries"
export REPO="$(basename "$GITHUB_REPOSITORY")"
echo $REPO
ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/${{ matrix.lib }}
ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/$REPO
# Update the arduino code. Attention this does not setup XMC packages as this are set inside the selfhosted runner
- name: Install/Update Arduino Platform
Expand Down Expand Up @@ -96,8 +92,6 @@ jobs:

# for flashig we need the port_name, see board2port.yaml
include:
- workspace: "Arduino/libraries"
- lib: "magnetic-angle-sensor"
- platform: "infineon:xmc"
fqbn: Infineon:xmc:XMC1100_XMC2GO
port_name: infineon.xmc.XMC1100_XMC2GO.magnetic-angle-sensor.port_serial.0
Expand All @@ -112,9 +106,10 @@ jobs:

- name: Compile Sketch
run: |
export REPO="$(basename "$GITHUB_REPOSITORY")"
ln -sfn /opt/XMC-for-Arduino ~/.arduino15/packages/Infineon
mkdir -p "$HOME/Arduino/libraries"
ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/${{ matrix.lib }}
ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/$REPO
arduino-cli compile --fqbn ${{ matrix.fqbn }} --libraries="." --libraries="$HOME/Arduino/libraries/." ${{ matrix.example }} --export-binaries
- name: Deploy
Expand All @@ -125,5 +120,6 @@ jobs:
export PORT=`./find_usb.sh $SERIAL_NUM`
echo $PORT
echo $DEVICE
echo $REPO
cd $HOME
python $HOME/.arduino15/packages/Infineon/hardware/xmc/3.0.0/tools/xmc-flasher.py upload -d $DEVICE -p $PORT -f $HOME/Arduino/libraries/${{ matrix.lib }}/${{ matrix.example }}/build/Infineon.xmc.XMC1100_XMC2GO/*.hex

0 comments on commit 6f93ccd

Please sign in to comment.