-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to prep build environment without building #142
Comments
I am able to achieve it by building twice, but its a little wasteful!
|
Hi @witnessmenow. The compilation runs in the same environment as the rest of your workflow job, so you can prepare the environment as needed in advance. This means that if you need to make any modifications to dependencies, simply run those operations in workflow steps before the step that executes the Although you could do it various ways, if you want to install the latest release version of the - name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Install TFT_eSPI library to prepare for modifications
run: |
arduino-cli lib install TFT_eSPI
- name: Copy User_Setup.h
run: |
cp -fR DisplayConfig/User_Setup.h ~/Arduino/libraries/TFT_eSPI/
- uses: arduino/compile-sketches@v1
name: Compile CYD code
with:
fqbn: "esp32:esp32:esp32"
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
# No need to specify ESP-libraries as these are installed with the platform (on the line above).
libraries: |
- name: ImageFetcher
source-url: https://github.com/witnessmenow/file-fetcher-arduino.git
- name: WiFiManager
- name: ESP_DoubleResetDetector
- name: ArduinoJson
- name: ezTime
- name: UniversalTelegramBot
- name: PNGdec
sketch-paths: |
- F1-Notifications
enable-warnings-report: true
verbose: true
cli-compile-flags: |
- --export-binaries Note that I did not include If you have any questions or problems while using Arduino's GitHub Actions actions, or with setting up continuous integration of Arduino projects in general, you are welcome to post over on Arduino Forum. I'll be happy to provide assistance over there. |
Thank you @per1234 , much appreciated |
Describe the request
For my use case I need to be able to modify files in an installed library before the build takes place.
For example, tft_eSPI is a popular library for different displays, but it requires the user to update a
User_Setup.h
file inside the library. From the library Readme:In order to use the library I would need to:
User_Setup.h
into the libraryUnless I'm missing something (And I could be, i'm pretty new to Arduino CLI and Github actions), I don't think that's possible with the current setup?
Describe the current behavior
I don't see how to achieve this with current options/flags
'arduino/compile-sketches' version
latest
Additional context
Thanks so much for the work on this, I've already started to use for some of my libraries to test examples!
Issue checklist
The text was updated successfully, but these errors were encountered: