Skip to content

Commit b801ef6

Browse files
authored
Add lld installation and test steps for Linux (#3213)
1 parent 9ca71de commit b801ef6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/rust-ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,17 @@ jobs:
4242
if: runner.os == 'macOS'
4343
run: rm -f .cargo/config.toml
4444
- uses: dtolnay/rust-toolchain@stable
45-
- run: cargo test --workspace
45+
- name: Install lld (Linux only)
46+
if: runner.os == 'Linux'
47+
run: sudo apt-get update && sudo apt-get install -y lld
48+
- name: Run tests (with lld on Linux)
49+
if: runner.os == 'Linux'
50+
env:
51+
RUSTFLAGS: "-Clinker-features=-lld"
52+
run: cargo test --workspace
53+
- name: Run tests (Windows & macOS)
54+
if: runner.os != 'Linux'
55+
run: cargo test --workspace
4656

4757
fmt:
4858
name: Rustfmt

0 commit comments

Comments
 (0)