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

Implement Github Actions #59

Closed
wants to merge 15 commits into from
Closed

Conversation

jameskr97
Copy link
Contributor

@jameskr97 jameskr97 commented Dec 28, 2021

CI for infoware 🛠️

My intention is to build on all three platforms as I mentioned in #47. I noticed that someone had already made PR #57 before I had the chance to make this PR, thought I wanted to still share what I created, and let the maintainers choose if they would like to merge.

The main differences, is that I use one .yml file for all three operating systems. In my experience, it simplifies seeing which build failed and for which commit, verses when they are in two separate files, and you have to look at two separate separate GHA detail pages.

The only idea I pulled from #57 is adding the build status badges to the README.md. I did switch to use HTML only for the top portion with the infoware header, and a and img tags for the badges. In my opinion it looks cleaner that having all the badge+header info on a single line, though if this is not desired, I'm happy to revert the commit. (Regaurdless of switching or not, until a PR is merged, and an action CI is run on ThePhD's page, the badge on the README.md won't properly show a badge)

I was able to use ninja all three OS's. It's was able to notably cut down on my compile times for my other projects, so it's a go-to for most projects.

I was unsure what the desired CMake variable settings were, so I went with:

  • INFOWARE_USE_OPENCL=ON (Except Windows)
  • INFOWARE_EXAMPLES=ON
  • INFOWARE_TESTS=ON

Please let me know if I should make any changes!

@nabijaczleweli nabijaczleweli changed the title ⚙️ Implement Github Actions Implement Github Actions Dec 28, 2021
Copy link
Collaborator

@nabijaczleweli nabijaczleweli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Cf. mostly nomenclatural notes below.

For reference, here's the set of jobs this generated. (I don't seem to be able to let'er rip in this repo, I guess it needs to have Anything at first.)

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

@nabijaczleweli nabijaczleweli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. https://github.com/jameskr97/infoware/actions/runs/1632159485 seems to've completed without issues, too.

nabijaczleweli pushed a commit that referenced this pull request Dec 28, 2021
@nabijaczleweli
Copy link
Collaborator

nabijaczleweli commented Dec 28, 2021

Applied as 88b1ac1, thanks!

nabijaczleweli pushed a commit that referenced this pull request Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants