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 Actions CI #733

Merged
merged 3 commits into from
Nov 29, 2024
Merged

Conversation

bjosv
Copy link
Contributor

@bjosv bjosv commented Jan 18, 2024

Since Travis CI is no longer free as before, and there are issues with AppVeyor we currently don't have a working CI.
This PR adds a basic CI run which build and run tests for both crypto backends on Linux, Mac and Windows.

An example run: https://github.com/Nordix/SoftHSMv2/actions/runs/7718456304
The failed botan run is related to #724

Windows vcpkg's are cached for faster builds, but there are a lot of other improvements that could be done to this CI.
Examples are running sanitizers/valgrind/Coverity on Linux or using later OpenSSL version.

In general we would like to support this project, and adding a CI which can indicate existing issues is a start.
WDYT @halderen @rijswijk @jschlyter ?

bjosv added 2 commits January 18, 2024 10:42
Build and run tests for both crypto backends on Linux,
and currently just build without tests on Windows.
Fixed CMake issues to be able to build tests on Windows,
and added a test step to Github Actions CI.
@bjosv
Copy link
Contributor Author

bjosv commented Jan 24, 2024

If accepted I can update this PR with a build status badge on the README.md,
and maybe remove the Travis configs/files since it is not used anymore.

Build and run tests for both crypto backends on macOS in CI.
Mac/OS X is supported since it is documented in OSX-NOTES.md
@bjosv
Copy link
Contributor Author

bjosv commented Jan 30, 2024

Added so we also build and run tests on Mac/OSX which is supported according to OSX-NOTES.md.

@jschlyter
Copy link
Contributor

I believe this would be a great update to the CI workflow.

@jschlyter
Copy link
Contributor

Can you refresh this PR and I'll merge it.

@jschlyter jschlyter assigned jschlyter and unassigned halderen Nov 28, 2024
@jschlyter jschlyter added the important Important issue label Nov 28, 2024
@jschlyter jschlyter linked an issue Nov 28, 2024 that may be closed by this pull request
@invik
Copy link

invik commented Nov 28, 2024

Could I suggest building against latest OpenSSL 1.1.1 version, which is 1.1.1w ?

@jschlyter
Copy link
Contributor

Could I suggest building against latest OpenSSL 1.1.1 version, which is 1.1.1w ?

Let's start with the current setup on pure Ubuntu 20.04 and take it from there. I'd be happy to merge updates for various OpenSSL version later (and we need to once support for OpenSSL 3.x is merged).

@jschlyter jschlyter merged commit 8129b74 into softhsm:develop Nov 29, 2024
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
important Important issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All pull requests fail because CI is broken
4 participants