Skip to content

Commit

Permalink
Update compile_generics.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Spooks4576 committed Oct 31, 2024
1 parent b336d40 commit 20a3d1e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/compile_generics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,18 @@ jobs:
exit 1
fi
- name: Set Target
- name: Set ESP-IDF Target in SDK Config
run: |
. ~/esp-idf/export.sh
idf.py set-target ${{ matrix.target.idf_target }}
TARGET_VAR="CONFIG_IDF_TARGET=${{ matrix.target.idf_target }}"
SDKCONFIG_FILE="${{ matrix.target.sdkconfig_file }}"
echo "Setting target in SDK Config: $TARGET_VAR in $SDKCONFIG_FILE"
if grep -q "^CONFIG_IDF_TARGET=" "$SDKCONFIG_FILE"; then
sed -i "s/^CONFIG_IDF_TARGET=.*/$TARGET_VAR/" "$SDKCONFIG_FILE"
else
echo "$TARGET_VAR" >> "$SDKCONFIG_FILE"
fi
- name: Set Environment Variables for Matrix Configuration
run: |
Expand Down

0 comments on commit 20a3d1e

Please sign in to comment.