From d7642903628d8aaf6fa2ec11661ec77cbbee02c9 Mon Sep 17 00:00:00 2001 From: Redfire Date: Mon, 14 Oct 2024 08:32:25 +0800 Subject: [PATCH] Installed LLVM in MacOS Release CI --- .github/actions/setup/action.yml | 2 +- .github/workflows/release.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 7d5be74c..a8616fa4 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -35,7 +35,7 @@ runs: shell: bash run: | brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done - brew install llvm yasm + brew install lld llvm yasm echo "RUSTC_WRAPPER=sccache" >> $GITHUB_PATH - name: Install Dependencies on Linux diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93cb7ad4..b1e08768 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: - uses: actions/checkout@v4 - name: Install LLVM - if: matrix.os == 'linux' + if: matrix.os == 'macos' || matrix.os == 'linux' uses: ZhongRuoyu/setup-llvm@v0 with: llvm-version: 18 @@ -92,7 +92,6 @@ jobs: CFLAGS: -flto CPPFLAGS: -flto CXXFLAGS: -flto - LDFLAGS: -fuse-ld=lld RUSTFLAGS: -Clinker-plugin-lto -Clinker=clang -Clink-arg=-fuse-ld=lld run: | just build-release -v --locked --target $TARGET