更新 .gitea/workflows/esp32test.yml
Some checks failed
編譯測試 / TestBuild (push) Failing after 12s

This commit is contained in:
2025-01-13 08:30:14 +00:00
parent 6efbd20353
commit f6ea9ab4eb

View File

@ -40,15 +40,23 @@ jobs:
with:
path: /root/.arduino15/packages
key: ${{ runner.os }}-esp32tool-${{ hashFiles("/root/additional.json") }}
restore-keys: ${{ runner.os }}-esp32tool-
- name: 安裝平台
restore-keys: |
${{ runner.os }}-esp32tool-
- name: 判斷平台是否安裝
id: platformIsInstall
run: |
if [ -d "/root/.arduino15/packages/esp32" ]; then
echo "平台已被安裝 跳過安裝"
echo "isinstall=true" >> "$GITHUB_OUTPUT"
else
arduino-cli core update-index
arduino-cli core install esp32:esp32 --additional-urls $additionalurls
echo "isinstall=false" >> "$GITHUB_OUTPUT"
fi
- name: 判斷平台是否安裝
run: echo ${{ steps.platformIsInstall.outputs.isinstall }}
- name: 安裝平台
if: ${{ steps.platformIsInstall.outputs.isinstall == "true" }}
run: |
arduino-cli core update-index
arduino-cli core install esp32:esp32 --additional-urls $additionalurls
- name: 安裝庫
run: |
arduino-cli lib install "Adafruit ILI9341@1.6.1"