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

Add GitHub Workflow for Linux (attempt MacOS) #445

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AE1020
Copy link

@AE1020 AE1020 commented Apr 14, 2021

This triggers a GitHub Action that gets the dependencies for avr-gcc
(and also freeglut) in order to run the make on Linux.

After the make is complete, it runs the suggested test command from
the README.md. Currently this demonstrates that the output does
not match what is stated. This could be evolved into a test that
uses the continuous integration to enforce that the README.md output
stays in sync with the actual program output.

It includes an attempt to build on a Mac container. It gets an
error of "fatal: No names found, cannot describe anything"...which
someone familiar with MacOS who has seen a successful build would
be more qualified to try and fix than I would be.

@AE1020
Copy link
Author

AE1020 commented Apr 14, 2021

Here the Linux build is successfully installing dependencies and compiling:

https://github.com/AE1020/simavr/runs/2347149922?check_suite_focus=true#step:6:1

(Note: the MacOS build matrix line can be commented out if you don't offhand know how to fix it.)

But please see the output when running the example from README.md, which does not match the input.

output for $./simavr/run_avr tests/atmega88_example.axf

I mention in issue #168 that I wasn't getting the expected output. I figured that contributing a GitHub Action would be generically useful, as well as a good way to demonstrate that the disparity is not just on my machine.


Be aware--if you are not already--that Travis has formally ceased providing CI credits for open source projects. Which is no big loss, as GitHub Actions is much better.

This triggers a GitHub Action that gets the dependencies for avr-gcc
(and also freeglut) in order to run the `make` on Linux.

After the make is complete, it runs the suggested test command from
the README.md.  Currently this demonstrates that the output does
not match what is stated.  This could be evolved into a test that
uses the continuous integration to enforce that the README.md output
stays in sync with the actual program output.

It includes an attempt to build on a Mac container.  It gets an
error of "fatal: No names found, cannot describe anything"...which
someone familiar with MacOS who has seen a successful build would
be more qualified to try and fix than I would be.
Travis CI no longer offers free open source credits for CI, and has
been leapfrogged by dozens of other services.

https://www.reddit.com/r/linux/comments/k92tc0/travis_is_no_longer_free_for_opensource_projects/
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

Successfully merging this pull request may close these issues.

None yet

1 participant