-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Configure TFT_eSPI and configs.h for Marauder M5Cardputer
- Loading branch information
1 parent
2fbb143
commit 3e9217d
Showing
2 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,6 +181,30 @@ jobs: | |
cat "$i" | grep compiler.c.elf.libs.esp32 | ||
done | ||
- name: Configure TFT_eSPI and configs.h for Marauder M5Cardputer | ||
run: | | ||
# Configure TFT_eSPI | ||
sed -i 's/^#include <User_Setup.h>/\/\/#include <User_Setup.h>/' /home/runner/Arduino/libraries/CustomTFT_eSPI/User_Setup_Select.h | ||
sed -i 's/^\/\/#include <User_setup_marauder_m5cardputer.h>/#include <User_setup_marauder_m5cardputer.h>/' /home/runner/Arduino/libraries/CustomTFT_eSPI/User_Setup_Select.h | ||
# Configure configs.h | ||
sed -i 's/^ #define MARAUDER_REV_FEATHER/ \/\/#define MARAUDER_REV_FEATHER/' esp32_marauder/configs.h | ||
sed -i 's/^ #define MARAUDER_MINI/ \/\/#define MARAUDER_MINI/' esp32_marauder/configs.h | ||
sed -i 's/^ #define MARAUDER_V4/ \/\/#define MARAUDER_V4/' esp32_marauder/configs.h | ||
sed -i 's/^ #define MARAUDER_V6/ \/\/#define MARAUDER_V6/' esp32_marauder/configs.h | ||
sed -i 's/^ \/\/#define MARAUDER_M5CARDPUTER/ #define MARAUDER_M5CARDPUTER/' esp32_marauder/configs.h | ||
- name: Build Marauder for M5Cardputer | ||
uses: ArminJo/[email protected] | ||
with: | ||
sketch-names: esp32_marauder.ino | ||
arduino-board-fqbn: esp32:esp32:esp32s2:PartitionScheme=min_spiffs,FlashSize=4M,PSRAM=enabled | ||
extra-arduino-cli-args: "--warnings none" | ||
|
||
- name: Rename Marauder M5Cardputer bin | ||
run: | | ||
mv ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.ino.bin ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.m5cardputer.bin | ||
- name: Configure configs.h for Flipper Zero WiFi Dev Board | ||
run: | | ||
sed -i 's/^ #define MARAUDER_REV_FEATHER/ \/\/#define MARAUDER_REV_FEATHER/' esp32_marauder/configs.h | ||
|
@@ -554,6 +578,13 @@ jobs: | |
path: ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.rev_feather.bin | ||
retention-days: 5 | ||
|
||
- name: "Upload M5Cardputer Artifact" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: esp32_marauder.m5cardputer.bin | ||
path: ./esp32_marauder/build/esp32.esp32.esp32s2/esp32_marauder.m5cardputer.bin | ||
retention-days: 5 | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
|
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