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

Fixes #22 C# gha workflow #143

Merged
merged 54 commits into from
May 13, 2024
Merged

Fixes #22 C# gha workflow #143

merged 54 commits into from
May 13, 2024

Conversation

Felixmil
Copy link
Collaborator

@Felixmil Felixmil commented Apr 25, 2024

Fixes #22

image

@rwmcintosh rwmcintosh requested a review from PavelBal May 9, 2024 20:12
@rwmcintosh
Copy link
Member

I think we have to be observant about this. I believe the tests are not very reliable, but let's start with this.

@rwmcintosh
Copy link
Member

Fixes #22

@rwmcintosh rwmcintosh linked an issue May 9, 2024 that may be closed by this pull request
@rwmcintosh rwmcintosh changed the title C# gha workflow Fixes #22 C# gha workflow May 9, 2024
.github/workflows/R-CMD-check.yaml Outdated Show resolved Hide resolved
.github/workflows/pkgdown.yaml Outdated Show resolved Hide resolved
.github/workflows/test-coverage.yaml Outdated Show resolved Hide resolved
@Felixmil
Copy link
Collaborator Author

Felixmil commented May 13, 2024

R actions should start only after binaries successfully built. Will only work once the C# building workflow is in default branch (cf https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run)

Note: This event will only trigger a workflow run if the workflow file is on the default branch.

Felixmil and others added 2 commits May 13, 2024 10:27
+ trigger R actions on pull request to main branch
+ remove comments
@Felixmil
Copy link
Collaborator Author

@rwmcintosh
Copy link
Member

@rwmcintosh The .so file is apparently not commited during the Linux step: https://github.com/Open-Systems-Pharmacology/rSharp/actions/runs/9059706133/job/24887856458#step:8:28

However the .dll files are commited during the Windows build: https://github.com/Open-Systems-Pharmacology/rSharp/actions/runs/9059706133/job/24887924340#step:10:32

It could be because gcc builds the binary equivalent when source is unchanged where msvc does not. I will commit a change in the C++ cod to test it today, but then I need to change it back again before merging.

@rwmcintosh
Copy link
Member

@rwmcintosh The .so file is apparently not commited during the Linux step: https://github.com/Open-Systems-Pharmacology/rSharp/actions/runs/9059706133/job/24887856458#step:8:28
However the .dll files are commited during the Windows build: https://github.com/Open-Systems-Pharmacology/rSharp/actions/runs/9059706133/job/24887924340#step:10:32

It could be because gcc builds the binary equivalent when source is unchanged where msvc does not. I will commit a change in the C++ cod to test it today, but then I need to change it back again before merging.

@Felixmil confirmed the above. Changes in cpp source will trigger a commit of .so. All Linux and Windows build/commit is complete.

@Felixmil
Copy link
Collaborator Author

C# binaries are now built by github actions and pushed to repository (in PR branches, before merge)

@PavelBal Can we merge ?

@PavelBal
Copy link
Member

Let's try out.

@Felixmil Felixmil merged commit dc5a413 into main May 13, 2024
@Felixmil Felixmil deleted the C#-gha-workflow branch May 13, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Set up continuous integration for C++ and C#
3 participants