Skip to content

Commit

Permalink
ci: link openssl statically
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jan 16, 2024
1 parent 6fc64b8 commit 0c214a7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ jobs:
env
python -m pip install --upgrade pip maturin
python -m pip install pytest
maturin develop --manifest-path yara-x-py/Cargo.toml
maturin develop --manifest-path yara-x-py/Cargo.toml --features=static-openssl
pytest yara-x-py
6 changes: 2 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ ariadne = "0.3.0"
array-bytes = "6.2.0"
arrayref = "0.3.7"
ascii_tree = "0.1.1"
authenticode-parser = "0.3.2"
#authenticode-parser = "0.3.2"
authenticode-parser = { git = "https://github.com/plusvic/authenticode-parser.git", rev="b9f8f03"}
base64 = "0.21.0"
bincode = "1.3.3"
bitmask = "0.5.0"
Expand Down
3 changes: 3 additions & 0 deletions yara-x-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ name = "yara_x"
doc = false
crate-type = ["cdylib"]

[features]
static-openssl = ["yara-x/static-openssl"]

[dependencies]
pyo3 = { version = "0.19.2", features = ["abi3", "abi3-py38", "extension-module"]}
pyo3-file = "0.7.0"
Expand Down
3 changes: 3 additions & 0 deletions yara-x/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ logging = ["dep:log"]
# scan. Notice that profiling itself has a noticeable impact on performance.
rules-profiling = ["logging"]

# Links OpenSSL statically.
static-openssl = ["authenticode-parser/static_openssl"]

# Features for enabling/disabling modules.
#
# For each module we have a `<module name>-module` feature that controls whether
Expand Down

0 comments on commit 0c214a7

Please sign in to comment.