Skip to content
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

Error When Running AUnit: fatal error: AUnit.h: No such file or directory #63

Closed
joesan opened this issue Jan 1, 2021 · 3 comments
Closed

Comments

@joesan
Copy link

joesan commented Jan 1, 2021

I just used this library to write unit tests for my Arduino codebase and I integrated it into GitHub Actions as per the test examples given. When running, I get the following error:

MotorControlWithEncoder.ino:6:10: fatal error: AUnit.h: No such file or directory
    6 | #include <AUnit.h>
      |          ^~~~~~~~~

Any idea how I could make the GitHub actions know about AUnit being used? In my Makefile, I have the following:

APP_NAME := MotorControlWithEncoder
ARDUINO_LIBS := AUnit
include ../../../UnixHostDuino/UnixHostDuino.mk
@bxparks
Copy link
Owner

bxparks commented Jan 2, 2021

Does your Makefile work on your personal computer? If it does, then this is a GitHub Actions configuration issue. But to debug that, I would need to see your github workflow yaml file, which you didn't provide, so I'm going to take blind guesses:

@joesan
Copy link
Author

joesan commented Jan 3, 2021

I managed to get this fixed by adding a git pull ifor all the dependencies (in my case just the AUnit) n my actions yml file! Thanks for the help!

@joesan joesan closed this as completed Jan 3, 2021
@bxparks
Copy link
Owner

bxparks commented Jan 3, 2021

Glad you got it working. Obviously I needed to improve the documentation regarding Continuous Integration options, so I added the following section in the README.md:

https://github.com/bxparks/AUnit#ContinuousIntegration

The additional information that might be relevant for you is that I recommend using the master branch instead of the develop branch of my libraries, so that you get the stable, released versions, instead of the unstable development versions:

git clone --branch master https://github.com/bxparks/UnixHostDuino
git clone --branch master https://github.com/bxparks/AUnit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants