build_push.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. name: Build and Push
  2. on:
  3. push:
  4. branches: [ "master" ]
  5. pull_request:
  6. branches: [ "master" ]
  7. workflow_dispatch:
  8. jobs:
  9. # This workflow contains a single job called "build"
  10. build:
  11. name: Build Marauder Binaries
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout Code
  15. uses: actions/checkout@v3
  16. - name: Install TFT_eSPI
  17. uses: actions/checkout@v2
  18. with:
  19. repository: justcallmekoko/TFT_eSPI
  20. ref: master
  21. path: CustomTFT_eSPI
  22. - name: Install LinkedList
  23. uses: actions/checkout@v2
  24. with:
  25. repository: ivanseidel/LinkedList
  26. ref: master
  27. path: CustomLinkedList
  28. - name: Install lv_arduino
  29. uses: actions/checkout@v2
  30. with:
  31. repository: lvgl/lv_arduino
  32. ref: master
  33. path: Customlv_arduino
  34. - name: Install JPEGDecoder
  35. uses: actions/checkout@v2
  36. with:
  37. repository: Bodmer/JPEGDecoder
  38. ref: master
  39. path: CustomJPEGDecoder
  40. - name: Install NimBLE-Arduino
  41. uses: actions/checkout@v2
  42. with:
  43. repository: h2zero/NimBLE-Arduino
  44. ref: master
  45. path: CustomNimBLE-Arduino
  46. - name: Install Adafruit_NeoPixel
  47. uses: actions/checkout@v2
  48. with:
  49. repository: adafruit/Adafruit_NeoPixel
  50. ref: master
  51. path: CustomAdafruit_NeoPixel
  52. - name: Install ArduinoJson
  53. uses: actions/checkout@v2
  54. with:
  55. repository: bblanchon/ArduinoJson
  56. ref: v6.18.2
  57. path: CustomArduinoJson
  58. - name: Install SwitchLib
  59. uses: actions/checkout@v2
  60. with:
  61. repository: justcallmekoko/SwitchLib
  62. ref: main
  63. path: CustomSwitchLib
  64. - name: Install ESP32 Boards
  65. uses: ArminJo/arduino-test-compile@v3.2.0
  66. with:
  67. sketch-names: MarauderOTA.ino
  68. arduino-board-fqbn: esp32:esp32:esp32s2
  69. platform-url: https://github.com/espressif/arduino-esp32/releases/download/2.0.0-rc1/package_esp32_dev_index.json
  70. - name: Show contents of platform.txt
  71. run: |
  72. echo "Chicken"
  73. for i in $(find /home/runner/.arduino15/packages/esp32/hardware/esp32/ -name "platform.txt"); do
  74. sed -i 's/compiler.c.elf.libs.esp32s2=/compiler.c.elf.libs.esp32s2=-zmuldefs /' "$i"
  75. done
  76. #find /home/runner/.arduino15/packages/esp32/hardware/esp32/ -name "platform.txt" -exec cat {} | grep
  77. #cat /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.0-rc1/platform.txt | grep compiler.c.elf.libs.
  78. - name: Find and Replace
  79. uses: jacobtomlinson/gha-find-replace@v2
  80. with:
  81. find: "ESP32 Marauder"
  82. replace: "compiler.c.elf.libs.esp32s2=-zmuldefs "
  83. regex: false
  84. # Setup Test compile for Arduino
  85. - name: Build Marauder for Flipper Zero WiFi Dev Board
  86. uses: ArminJo/arduino-test-compile@v3.2.0
  87. with:
  88. sketch-names: esp32_marauder.ino
  89. arduino-board-fqbn: esp32:esp32:esp32s2
  90. #platform-url: https://github.com/espressif/arduino-esp32/releases/download/2.0.0-rc1/package_esp32_dev_index.json
  91. extra-arduino-cli-args: "--warnings none"
  92. #extra-arduino-lib-install-args: "-zmuldefs"