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

Set up GitHub Actions to build and test P4MLIR #2

Merged
merged 3 commits into from
Oct 7, 2024
Merged

Conversation

qobilidop
Copy link
Member

No description provided.

@qobilidop qobilidop force-pushed the ci-build branch 2 times, most recently from 814b5c1 to d06acab Compare October 6, 2024 18:45
@fruffy
Copy link
Collaborator

fruffy commented Oct 6, 2024

Let's hope that ccache kicks in on the next commit. This should make it faster.

Signed-off-by: Bili Dong <qobilidop@gmail.com>
Also configured cache for LLVM.

Signed-off-by: Bili Dong <qobilidop@gmail.com>
@qobilidop
Copy link
Member Author

I also added some explicit caching that I learned from: https://github.com/llvm/circt/blob/09f07f5a601a264d69bf6d1c65fcd9a6b067497e/.github/workflows/buildAndTest.yml#L173-L201

I'm not quite sure how ccache works, but maybe these methods complement each other?

Signed-off-by: Bili Dong <qobilidop@gmail.com>
@fruffy
Copy link
Collaborator

fruffy commented Oct 7, 2024

Let's hope. I can see in the actions that both caches have been filled. Let's see how that works out on the next PR.

@fruffy
Copy link
Collaborator

fruffy commented Oct 7, 2024

https://github.com/p4lang/p4mlir/actions/caches

These are the caches that have been created.

@qobilidop qobilidop requested a review from fruffy October 7, 2024 15:09
@fruffy
Copy link
Collaborator

fruffy commented Oct 7, 2024

Do you want to make it mandatory to pass this action for subsequent PRs?

@qobilidop
Copy link
Member Author

Do you want to make it mandatory to pass this action for subsequent PRs?

Yes, I think that's reasonable. Is there a configuration in settings?


jobs:
build-and-test:
runs-on: ubuntu-20.04
Copy link
Collaborator

Choose a reason for hiding this comment

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

Which version of Ubuntu do you want to test for? Ubuntu 22.04 or even 24.04 might be easier.

Copy link
Member Author

Choose a reason for hiding this comment

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

For the MLIR part, yes I think these might be better. A while ago I ran into some issues building P4C from source on Ubuntu > 20.04. We'll need to integrate with P4C compilation later. But if that issue is resolved, I agree it's better to test with newer versions of Ubuntu, and maybe a matrix of different OS versions later.

@fruffy
Copy link
Collaborator

fruffy commented Oct 7, 2024

Yes, I think that's reasonable. Is there a configuration in settings?

Yes, under "branches". You should also see it. But I just realized this is only possible for public repositories.

@qobilidop
Copy link
Member Author

Yes, I think that's reasonable. Is there a configuration in settings?

Yes, under "branches". You should also see it. But I just realized this is only possible for public repositories.

Ah, I see. We can configure this later then.

@qobilidop qobilidop merged commit af6e91b into main Oct 7, 2024
2 checks passed
@qobilidop qobilidop deleted the ci-build branch October 7, 2024 16:20
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.

2 participants