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

🧱 switch to dedicated reusable MQT workflows #396

Merged
merged 4 commits into from
May 23, 2024

Conversation

burgholzer
Copy link
Member

Description

This PR switches the reusable workflows from MQT Core to the ones hosted at https://github.com/cda-tum/mqt-workflows. This creates a better separation of concerns and allows for separate versioning of the workflows and the MQT Core library.

Furthermore, this PR adapts the configuration of the continuous deployment job so that the job is also triggered if the respective workflow file is updated. This should help to catch errors as early as possible when dependabot updates the workflow.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
@burgholzer burgholzer added dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code continuous integration Anything related to the CI setup labels May 23, 2024
@burgholzer burgholzer self-assigned this May 23, 2024
Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.4%. Comparing base (1358f62) to head (9ce0a33).
Report is 53 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #396     +/-   ##
=======================================
- Coverage   96.6%   96.4%   -0.3%     
=======================================
  Files         35      35             
  Lines       1818    1819      +1     
  Branches     224     225      +1     
=======================================
- Hits        1758    1755      -3     
- Misses        60      64      +4     
Flag Coverage Δ
cpp 96.2% <ø> (-0.3%) ⬇️
python 97.2% <ø> (ø)

see 2 files with indirect coverage changes

@burgholzer
Copy link
Member Author

The macOS related failures seen here should be resolved by cda-tum/mqt-core#608

burgholzer added a commit to cda-tum/mqt-core that referenced this pull request May 23, 2024
## Description

This PR changes the CMake configuration so that GMP, which can be used
in the ZX library, needs to be explicitly added (opt-in) instead of
automatically being used (actually unconditionally, without an opt-out
option).

This has popped up in cda-tum/mqt-qcec#396 since
`delocate` fails to properly repair the produced wheel. This is a result
of `gmp` being automatically installed on macOS runners via brew.
However, this gets the latest system version, which is not compatible
with the minimum macOS targets that we set. I believe this only popped
up now, because there has been a `delocate` update that catches this.
In lack of a better option at the moment, this PR makes GMP support
entirely opt-in, which disables it for wheel builds and resolves the
underlying issue.
Anyone that wants to build MQT Core with GMP support, can now configure
CMake with `-DMQT_CORE_WITH_GMP`

In the future, it might be worth investigating whether there is a better
way to do this, e.g., by manually building `gmp` with the required
compatibility.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
@burgholzer burgholzer enabled auto-merge May 23, 2024 20:30
@burgholzer burgholzer merged commit ee6be25 into main May 23, 2024
74 checks passed
@burgholzer burgholzer deleted the switch-to-mqt-workflows branch May 23, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous integration Anything related to the CI setup dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant