summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yaml
diff options
context:
space:
mode:
authorSignal Linden <signal@lindenlab.com>2024-04-10 23:59:28 -0700
committerGitHub <noreply@github.com>2024-04-10 23:59:28 -0700
commitc86347eda085aa081dbff1ef12dc8a1c89314c21 (patch)
treefe34be3245c6157011396c0b1ef85f3ac614f923 /.github/workflows/build.yaml
parent52f3f70ce887c0f8877de7a8439bf44a246e7f9a (diff)
parent148f80f0779f42c1aa7d2f07c04a63507446662c (diff)
Merge pull request #1196 from secondlife/signal/mold
Add LINK_WITH_MOLD option
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r--.github/workflows/build.yaml22
1 files changed, 20 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 1f5d8ee47a..b5be5bb00c 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -98,8 +98,19 @@ jobs:
${{ runner.os }}-64-
- name: Install Linux dependencies
- if: runner.os == 'linux'
- run: sudo apt update && sudo apt install -y libsndio-dev libpulse-dev libfltk1.3-dev libunwind-dev libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libxrender-dev libxfixes-dev libxxf86vm-dev libxss-dev libdbus-1-dev libudev-dev libssl-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfreetype6-dev ninja-build libxft-dev
+ if: runner.os == 'Linux'
+ run: |
+ sudo apt update
+ sudo apt install -y \
+ libsndio-dev libpulse-dev libfltk1.3-dev \
+ libunwind-dev libgl1-mesa-dev libglu1-mesa-dev \
+ libx11-dev libxrandr-dev libxinerama-dev \
+ libxcursor-dev libxi-dev libxext-dev \
+ libxrender-dev libxfixes-dev libxxf86vm-dev \
+ libxss-dev libdbus-1-dev libudev-dev \
+ libssl-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
+ libfreetype6-dev ninja-build libxft-dev \
+ llvm mold
- name: Install windows dependencies
if: runner.os == 'Windows'
@@ -208,6 +219,13 @@ jobs:
fi
export PYTHON_COMMAND_NATIVE="$(native_path "$PYTHON_COMMAND")"
+ # Compile with clang, link with mold on linux.
+ if [[ "$RUNNER_OS" == "Linux" ]]; then
+ export CC=clang
+ export CXX=clang++
+ export CMAKE_OPTIONS='-DLINK_WITH_MOLD=ON'
+ fi
+
./build.sh
# Each artifact is downloaded as a distinct .zip file. Multiple jobs