From fa1f41e9abb0e8127940b1c2b63739cba6fab126 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Tue, 22 Apr 2025 12:58:29 -0500 Subject: [PATCH] CI: Use `mold` as linker on Linux --- .github/workflows/linux_builds.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 4539f1b77cf..f465ab1daf1 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -35,11 +35,11 @@ jobs: # Validate godot-cpp compatibility on one arbitrary editor build. godot-cpp: true - - name: Editor with doubles and GCC sanitizers (target=editor, tests=yes, dev_build=yes, scu_build=yes, precision=double, use_asan=yes, use_ubsan=yes, linker=gold) + - name: Editor with doubles and GCC sanitizers (target=editor, tests=yes, dev_build=yes, scu_build=yes, precision=double, use_asan=yes, use_ubsan=yes, linker=mold) cache-name: linux-editor-double-sanitizers target: editor # Debug symbols disabled as they're huge on this build and we hit the 14 GB limit for runners. - sconsflags: dev_build=yes scu_build=yes debug_symbols=no precision=double use_asan=yes use_ubsan=yes linker=gold + sconsflags: dev_build=yes scu_build=yes debug_symbols=no precision=double use_asan=yes use_ubsan=yes linker=mold bin: ./bin/godot.linuxbsd.editor.dev.double.x86_64.san build-mono: false tests: true @@ -162,6 +162,10 @@ jobs: - name: Extract pre-built AccessKit run: unzip -o accesskit-c-0.15.1/accesskit_c.zip + - name: Install mold linker + if: matrix.proj-test + uses: rui314/setup-mold@v1 + - name: Compilation uses: ./.github/actions/godot-build with: