From 833b2223c38b5caba6fadd99602ca115cc6e8e7b Mon Sep 17 00:00:00 2001 From: Vincent Thiberville Date: Sun, 14 Apr 2024 17:12:05 +0200 Subject: [PATCH] feat: add magic feature in CI --- .github/workflows/ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0848bfe..525247c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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" ]