Merge pull request #8 from netz39/7-upgrade-esp-idf-to-v5-1 #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build ESP firmware | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Create gitignored loginData file with github secrets | |
run: | | |
cd main | |
touch loginData.hpp | |
echo '#define WifiSsid "'${{ secrets.WIFI_SSID }}'"' >> loginData.hpp | |
echo '#define WifiPassword "'${{ secrets.WIFI_PASSWORD }}'"' >> loginData.hpp | |
echo 'constexpr auto AuthKey = "'${{ secrets.AUTH_TOKEN }}'";' >> loginData.hpp | |
shell: bash | |
- name: esp-idf build | |
uses: espressif/esp-idf-ci-action@v1 | |
with: | |
esp_idf_version: release-v5.1 | |
target: esp32 |