From f41b4939be028bfa07aad5bf5356a9b6152812c7 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Sat, 4 Apr 2026 11:32:23 -0500 Subject: [PATCH] run two builds, one with unity on and the other with unity off --- .github/workflows/build-linux.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 27bd128df..e6c7ab830 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -50,19 +50,20 @@ jobs: restore-keys: ${{ runner.os }}-ccache- - name: Configure Meson - env: - CC: "ccache clang" - CXX: "ccache clang++" - CC_LD: lld - CXX_LD: lld run: | - meson setup build --native-file=scripts/llvm_native.txt --wipe + meson setup build --native-file=scripts/llvm_native.txt -Dunity=off --wipe + meson setup build_unity --native-file=scripts/llvm_native.txt -Dunity=on -Dunity_size=99999 --wipe - - name: Build with Meson + - name: Compile (-Dunity=on) + env: + CCACHE_DIR: ${{ runner.temp }}/ccache + run: | + meson compile -C build_unity -j $(nproc) -v Minecraft.Client + + - name: Compile (-Dunity=off) env: CCACHE_DIR: ${{ runner.temp }}/ccache run: | - # Use all available cores for faster parallel builds meson compile -C build -j $(nproc) -v Minecraft.Client - name: Upload artifact