Skip to content

Commit 7bc22bd

Browse files
committed
chore: disable rust-lld in nightly build.
Link is currently failing with rust-lld (rust-lang/rust#124129).
1 parent dee0f65 commit 7bc22bd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,34 @@ jobs:
2424
os: ubuntu-latest
2525
rust: 1.74.0
2626
args: "--features=magic-module"
27+
rust_flags: "-Awarnings"
2728

2829
- build: stable
2930
os: ubuntu-latest
3031
rust: stable
3132
args: "--features=magic-module"
33+
rust_flags: "-Awarnings"
3234

3335
- build: nightly
3436
os: ubuntu-latest
3537
rust: nightly
3638
args: "--features=magic-module"
39+
# Link is currently failing with rust-lld (rust-lang/rust#124129)
40+
# Disable rust-lld with -Zlinker-features=-lld
41+
# See: https://github.com/dtolnay/linkme/commit/d13709bfd2c1278b4c8b6c846e2017b623923c0c
42+
rust_flags: "-Awarnings -Zlinker-features=-lld"
3743

3844
- build: macos
3945
os: macos-latest
4046
rust: stable
4147
args: ""
48+
rust_flags: "-Awarnings"
4249

4350
- build: win-msvc
4451
os: windows-latest
4552
rust: stable
4653
args: ""
54+
rust_flags: "-Awarnings"
4755

4856
# Tests for the `stable-x86_64-pc-windows-gnu` toolchain disabled
4957
# due to https://github.com/VirusTotal/yara-x/issues/29
@@ -57,6 +65,7 @@ jobs:
5765
os: ubuntu-latest
5866
rust: stable
5967
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"
68+
rust_flags: "-Awarnings"
6069

6170
steps:
6271
- name: Checkout sources
@@ -85,4 +94,4 @@ jobs:
8594
- name: Run cargo test
8695
run: cargo test --all-targets ${{ matrix.args }}
8796
env:
88-
RUSTFLAGS: -Awarnings # Allow all warnings
97+
RUSTFLAGS: ${{ matrix.rust_flags }}

0 commit comments

Comments
 (0)