Commit Graph

4 Commits

Author SHA1 Message Date
Davide De Rosa 31c401bdf5
Mix OpenSSL patch and script version (#60)
SwiftPM only allows major.minor.patch version syntax, but we
need to avoid collisions.

E.g. OpenSSL 3.2.5 and script version 34 (0-99)

normalized_patch = (patch + 1) * 100 + script

-> 3.2.634

The +1 is necessary because e.g. 3.2.0 with script 34 would
translate to 3.2.34, which collides with OpenSSL versioning.

In this scheme, the repo tag will be of the form:

- .1xx (for 3.2.0)
- .2xx (for 3.2.1)
- ...

which is reversible to infer the OpenSSL patch.

E.g. 3.2.434

- Patch is 434
- OpenSSL patch is 434 / 100 - 1 = 3
- Script version is 434 % 100 = 34 (precondition is 0-99)

So 3.2.434 is OpenSSL 3.2.3 with script version 34
2023-12-16 13:56:52 +01:00
Davide De Rosa ccae2a7ebc
Fix script version not considered for tagging 2023-12-16 12:24:51 +01:00
hoppjan 12ad7b9efc
Fix OpenSSL 3 build issues (#52)
* OpenSSL 1.1.1x is EOL, this should make it work for 3.x.x versions.
See https://www.openssl.org/blog/blog/2023/03/28/1.1.1-EOL/

* Removed asm inheritance from config

* Make 3.x the standard parsing logic

* Drop all references to Bitcode

* Use newer -platform_version

* Default to 3.2.0

---------

Co-authored-by: Davide De Rosa <keeshux@gmail.com>
2023-12-12 11:41:50 +01:00
Davide De Rosa ac0d6f6d42
Reuse version normalizer (#44)
* Reuse get_openssl_version() from external script

* Improve variables usage in workflow

* Fix release notes generation

* Rename main job
2021-12-01 12:43:11 +01:00