From feb55fd2881b9c52c5c42c0df2020fa5fd587af2 Mon Sep 17 00:00:00 2001 From: Jacob Latonis Date: Sat, 18 May 2024 13:14:07 -0600 Subject: [PATCH 1/3] ci: mark nightly as experimental in matrix --- .github/workflows/tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ee7f28b41..f3da8876a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,8 +9,10 @@ jobs: env: CARGO_TERM_COLOR: always runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} strategy: matrix: + experimental: [false] build: - msrv - stable @@ -40,6 +42,7 @@ jobs: # Disable rust-lld with -Zlinker-features=-lld # See: https://github.com/dtolnay/linkme/commit/d13709bfd2c1278b4c8b6c846e2017b623923c0c rust_flags: "-Awarnings -Zlinker-features=-lld" + experimental: true - build: macos os: macos-latest From a79942d160a884a80353f140cd42ca36f4be8b22 Mon Sep 17 00:00:00 2001 From: Jacob Latonis Date: Sat, 18 May 2024 13:20:44 -0600 Subject: [PATCH 2/3] fail-fast addition --- .github/workflows/tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f3da8876a..7318669e0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,6 +11,7 @@ jobs: runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} strategy: + fail-fast: true matrix: experimental: [false] build: From 5fac63941ee265c8bc918fc8cab4373065294727 Mon Sep 17 00:00:00 2001 From: Jacob Latonis Date: Sat, 18 May 2024 13:25:49 -0600 Subject: [PATCH 3/3] set exp to false for others --- .github/workflows/tests.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7318669e0..40d585592 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -13,7 +13,6 @@ jobs: strategy: fail-fast: true matrix: - experimental: [false] build: - msrv - stable @@ -28,12 +27,14 @@ jobs: rust: 1.74.0 args: "--features=magic-module" rust_flags: "-Awarnings" + experimental: false - build: stable os: ubuntu-latest rust: stable args: "--features=magic-module" rust_flags: "-Awarnings" + experimental: false - build: nightly os: ubuntu-latest @@ -50,12 +51,14 @@ jobs: rust: stable args: "" rust_flags: "-Awarnings" + experimental: false - build: win-msvc os: windows-latest rust: stable args: "" rust_flags: "-Awarnings" + experimental: false # Tests for the `stable-x86_64-pc-windows-gnu` toolchain disabled # due to https://github.com/VirusTotal/yara-x/issues/29 @@ -64,12 +67,14 @@ jobs: # os: windows-latest # rust: stable-x86_64-gnu # args: "" + # experimental: false - build: no-default-features os: ubuntu-latest rust: stable args: "--package yara-x --no-default-features --features=test_proto2-module,test_proto3-module,string-module,time-module,hash-module,macho-module,magic-module,math-module,lnk-module,elf-module,pe-module,dotnet-module,console-module" rust_flags: "-Awarnings" + experimental: false steps: - name: Checkout sources