From a7d37ca599daad1d8a552e88e4ed0d9822c3d7dc Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Fri, 8 Nov 2024 16:03:29 +0000 Subject: [PATCH] ci(macos): install `lld` in `macos-latest` CI --- .cargo/config.toml | 2 +- .github/workflows/ci.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 0ff19c2..5ea986b 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,4 +2,4 @@ linker = "rust-lld" # NOTE: `rustdoc` doesn't currently respect the `linker` setting — keep an eye # on this issue: https://github.com/rust-lang/rust/issues/125657 -rustdocflags = ["-Clink-arg=-fuse-ld=/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin/gcc-ld/ld64.lld"] +rustdocflags = ["-Clink-arg=-fuse-ld=lld"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69e67ef..3c2c902 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,13 @@ jobs: with: toolchain: ${{ matrix.toolchain }} + # NOTE: `rustdoc` doesn't currently respect the `linker` setting — keep + # an eye on this issue: https://github.com/rust-lang/rust/issues/125657. + # In the meantime, we can't use `rust-lld` and will need to manually + # install `lld` on macOS (#14) + - if: runner.os == 'macOS' + run: brew install lld + - run: just test check_wasm_build: