Skip to content

Commit

Permalink
feat: add magic feature in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Apr 14, 2024
1 parent 1162a3c commit 833b222
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
- name: Run tests
env:
YARA_CRYPTO_LIB: openssl
run: cargo test --target=${{matrix.target}}
run: cargo test --features magic --target=${{matrix.target}}

- name: Run tests with Openssl
env:
YARA_CRYPTO_LIB: openssl
run: cargo test --features authenticode --target=${{matrix.target}}
run: cargo test --features magic,authenticode --target=${{matrix.target}}

# Some tests need to be super user
- name: Run super user tests
Expand All @@ -55,7 +55,7 @@ jobs:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sudo -E"
CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_RUNNER: "sudo -E"
run: |
cargo test --features authenticode --target=${{matrix.target}} -- --test-threads=1 --ignored
cargo test --features magic,authenticode --target=${{matrix.target}} -- --test-threads=1 --ignored
strategy:
fail-fast: false
Expand Down Expand Up @@ -264,10 +264,11 @@ jobs:
fail-fast: false
matrix:
features: [
"",
"--features=hash",
"--features=object",
"--features=process",
"--features=hash,object",
"--features=object,authenticode"
"--no-default-features",
"--no-default-features --features=hash",
"--no-default-features --features=object",
"--no-default-features --features=process",
"--no-default-features --features=hash,object",
"--no-default-features --features=object,authenticode",
"--all-features"
]

0 comments on commit 833b222

Please sign in to comment.