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 fa826cc commit deb53eb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/arduino_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:

include:
- lib: "magnetic-angle-sensor"
- workspace: "Arduino/libraries"

- platform: "arduino:avr"
fqbn: arduino:avr:uno
Expand All @@ -57,9 +56,10 @@ jobs:
- name: Set and check environment, install repos
run: |
ln -sfn /opt/XMC-for-Arduino ~/.arduino15/packages/Infineon
mkdir -p "$HOME/${{ matrix.workspace }}"
export
ln -sf $GITHUB_WORKSPACE/ $HOME/${{ matrix.workspace }}/${{ matrix.lib }}
mkdir -p "$HOME/Arduino/libraries"
export REPO="$(basename "$GITHUB_REPOSITORY")"
echo $REPO
ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/${{ matrix.lib }}
# 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 All @@ -69,7 +69,7 @@ jobs:
- name: Compile Sketch
run: |
arduino-cli compile --fqbn ${{ matrix.fqbn }} --libraries="." --libraries="$HOME/${{ matrix.workspace }}/." ${{ matrix.example }}
arduino-cli compile --fqbn ${{ matrix.fqbn }} --libraries="." --libraries="$HOME/Arduino/libraries/." ${{ matrix.example }}
deploy:

Expand Down Expand Up @@ -113,9 +113,9 @@ jobs:
- name: Compile Sketch
run: |
ln -sfn /opt/XMC-for-Arduino ~/.arduino15/packages/Infineon
mkdir -p "$HOME/${{ matrix.workspace }}"
ln -sf $GITHUB_WORKSPACE/ $HOME/${{ matrix.workspace }}/${{ matrix.lib }}
arduino-cli compile --fqbn ${{ matrix.fqbn }} --libraries="." --libraries="$HOME/${{ matrix.workspace }}/." ${{ matrix.example }} --export-binaries
mkdir -p "$HOME/Arduino/libraries"
ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/${{ matrix.lib }}
arduino-cli compile --fqbn ${{ matrix.fqbn }} --libraries="." --libraries="$HOME/Arduino/libraries/." ${{ matrix.example }} --export-binaries
- name: Deploy
run: |
Expand All @@ -126,4 +126,4 @@ jobs:
echo $PORT
echo $DEVICE
cd $HOME
python $HOME/.arduino15/packages/Infineon/hardware/xmc/3.0.0/tools/xmc-flasher.py upload -d $DEVICE -p $PORT -f $HOME/${{ matrix.workspace }}/${{ matrix.lib }}/${{ matrix.example }}/build/Infineon.xmc.XMC1100_XMC2GO/*.hex
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 deb53eb

Please sign in to comment.