-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Luc <8822552+luc-github@users.noreply.github.com>
- Loading branch information
Showing
35 changed files
with
515 additions
and
76 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
cd $GITHUB_WORKSPACE/esp-idf | ||
source ./export.sh | ||
cd $GITHUB_WORKSPACE | ||
idf.py fullclean | ||
sed -i '1,32s/ ON/ OFF/g' ./CMakeLists.txt | ||
sed -i '1,32s/OPTION(ESP32_2432S028R "TFT TARGET is ESP32_2432S028R - 2.8in. 320x240 (Resistive)" OFF/OPTION(ESP32_2432S028R "TFT TARGET is ESP32_2432S028R - 2.8in. 320x240 (Resistive)" ON/g' ./CMakeLists.txt | ||
idf.py fullclean | ||
head ./CMakeLists.txt -n 9 | ||
idf.py -DIDF_TARGET=esp32 reconfigure | ||
idf.py build |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: build-ci | ||
|
||
on: [pull_request, push] | ||
|
||
env: | ||
BUILD_ERROR: 0 | ||
|
||
jobs: | ||
esp-idf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.0.0 | ||
- name: Get IDF Setup Hash | ||
id: idf-setup-hash | ||
run: echo "hash=$(md5sum ./.github/ci/idf-setup.sh | awk '{ print $1 }')" >> $GITHUB_OUTPUT | ||
- name: Cache ESP-IDF | ||
id: cache-esp-idf | ||
uses: actions/cache@v4.0.0 | ||
with: | ||
path: esp-idf | ||
key: ${{ runner.os }}-esp-idf-${{ steps.idf-setup-hash.outputs.hash }} | ||
- name: Run IDF Setup | ||
if: steps.cache-esp-idf.outputs.cache-hit != 'true' | ||
run: bash ./.github/ci/idf-setup.sh | ||
- name: Create ESP-IDF Archive | ||
run: zip -r esp-idf.zip esp-idf | ||
- uses: actions/upload-artifact@v4.0.0 | ||
with: | ||
name: esp-idf | ||
path: esp-idf.zip | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: esp-idf | ||
strategy: | ||
matrix: | ||
platform: [ESP32S3_FREENOVE, ESP32S3_HMI43V3, ZX3D50CE02S-SRC-4832, ESP32S3_8048S070C, ESP32_ROTRICS_DEXARM35, ESP32_2432S028R] | ||
steps: | ||
- uses: actions/checkout@v4.0.0 | ||
with: | ||
submodules: 'recursive' | ||
- uses: actions/download-artifact@v4.0.0 | ||
with: | ||
name: esp-idf | ||
- name: Unzip ESP-IDF | ||
run: unzip esp-idf.zip | ||
- name: Install ESP-IDF Tools | ||
run: | | ||
cd esp-idf | ||
./install.sh | ||
- name: Build ${{ matrix.platform }} | ||
run: | | ||
source esp-idf/export.sh | ||
idf.py fullclean | ||
bash ./.github/ci/${{ matrix.platform }}.sh | ||
continue-on-error: true | ||
- name: Mark ${{ matrix.platform }} error | ||
if: failure() | ||
run: echo "BUILD_ERROR=1" >> $GITHUB_ENV | ||
|
||
finalize: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: always() | ||
steps: | ||
- uses: actions/checkout@v4.0.0 | ||
- name: Final check | ||
env: | ||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
run: | | ||
if [ "${{ env.BUILD_ERROR }}" -ne "0" ]; then | ||
bash ./.github/ci/final-check.sh "$GITHUB_RUN_ID" "failure" | ||
else | ||
bash ./.github/ci/final-check.sh "$GITHUB_RUN_ID" "success" | ||
fi |
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
if(ESP32_ROTRICS_DEXARM35) | ||
set(TFT_TARGET "ESP32_ROTRICS_DEXARM35") | ||
set(SDKCONFIG ${CMAKE_SOURCE_DIR}/hardware/ESP32_ROTRICS_DEXARM35/sdkconfig) | ||
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/hardware/ESP32S3_ZX3D50CE02S_USRC_4832/components) | ||
#list(APPEND EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/hardware/ESP32_ROTRICS_DEXARM35/components) | ||
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/hardware/ESP32_ROTRICS_DEXARM35/components) | ||
add_compile_options("-I${CMAKE_SOURCE_DIR}/hardware/ESP32_ROTRICS_DEXARM35/components/bsp") | ||
endif() |
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
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
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
Oops, something went wrong.