Skip to content

Commit

Permalink
Fix bug in link setting
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafFilies committed Oct 22, 2024
1 parent bfa4f29 commit 2001eb7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/arduino_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,14 @@ jobs:
# setup links inside the self hosted runner for correct directory setup
# REPO is the base name of the library which is linked to the right directory structure
# check wether the .arduino15 packages dir is available
# ln -sf $GITHUB_WORKSPACE/$REPO/build/ $HOME/Arduino/libraries/$REPO
- name: Generate Arduino Library
run: |
ln -sfn /opt/XMC-for-Arduino $HOME/.arduino15/packages/Infineon
ln -sn /opt/XMC-for-Arduino/hardware $HOME/.arduino15/packages/Infineon
mkdir -p "$HOME/Arduino/libraries"
cd $GITHUB_WORKSPACE/
xfp-dev arduino workspace-setup --path $HOME/Arduino/libraries
# Compile the sample code for the selected board and board support package with the arduino compiler
# ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/$REPO
- name: Compile
run: |
echo $HOME
Expand Down Expand Up @@ -180,10 +178,9 @@ jobs:
# REPO is the base name of the library which is linked to the right directory structure
# check wether the .arduino15 packages dir is available
# export REPO=${{ needs.setup.outputs.repo }}
# ln -sf $GITHUB_WORKSPACE/$REPO/build/ $HOME/Arduino/libraries/$REPO
- name: Set and check environment, install repos
run: |
ln -sfn /opt/XMC-for-Arduino/hardware $HOME/.arduino15/packages/Infineon
ln -sn /opt/XMC-for-Arduino/hardware $HOME/.arduino15/packages/Infineon
mkdir -p "$HOME/Arduino/libraries"
cd $GITHUB_WORKSPACE/
xfp-dev arduino workspace-setup --path $HOME/Arduino/libraries
Expand Down Expand Up @@ -283,12 +280,11 @@ jobs:
# check/set the arduino15 package library
# link the repo to the correct place for compiling under arduino-cli
# compile the code with the arduino-cli and export the binary files for flashing
# ln -sf $GITHUB_WORKSPACE/ $HOME/Arduino/libraries/$REPO
- name: Compile Sketch
run: |
export TMPDIR=$HOME/tmp
mkdir -p $TMPDIR
ln -sfn /opt/XMC-for-Arduino $HOME/.arduino15/packages/Infineon
ln -sn /opt/XMC-for-Arduino/hardware $HOME/.arduino15/packages/Infineon
mkdir -p "$HOME/Arduino/libraries"
cd $HOME/Arduino/libraries/${{ env.project }}
arduino-cli compile --clean --log --warnings all \
Expand Down

0 comments on commit 2001eb7

Please sign in to comment.