From a5b66ec4625c7372de836937148e1ed7556deb90 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Sun, 29 Mar 2026 22:46:00 -0500 Subject: [PATCH] revert CI --- .github/workflows/build-linux.yml | 40 ++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index e1ff0b0fd..37d28139b 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -22,17 +22,45 @@ on: jobs: build-linux: runs-on: ubuntu-latest + + env: + CC: ccache clang + CXX: ccache clang++ + CCACHE_DIR: ${{ runner.temp }}/ccache + steps: - name: Checkout repository uses: actions/checkout@v6 - - name: Install Nix - uses: cachix/install-nix-action@v31 + - name: Install system dependencies + uses: daaku/gh-action-apt-install@v4 with: - nix_path: nixpkgs=channel:nixos-unstable + packages: build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev patchelf + + - name: Install meson from pip + run: | + python -m pip install meson + + - name: Restore ccache + uses: actions/cache@v4 + with: + path: ${{ runner.temp }}/ccache + key: ${{ runner.os }}-ccache-${{ hashFiles('**/meson.build') }} + restore-keys: | + ${{ runner.os }}-ccache- + + - name: Configure ccache + run: ccache -M 5G + + - name: Configure Meson + run: meson setup build --wipe --native-file=./scripts/llvm_native.txt - name: Build - run: nix build --print-build-logs + run: meson compile -C build -j $(nproc) -v Minecraft.Client - - name: Flake integrity - run: nix flake check + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: minecraft-client-linux-${{ github.sha }} + path: build/Minecraft.Client/Minecraft.Client + retention-days: 7