diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index e6c7ab830..b8b940ef9 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -30,17 +30,16 @@ jobs: uses: actions/checkout@v6 - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev libglm-dev - python -m pip install meson - # Set a reasonable ccache size - ccache -M 5G || true + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev libglm-dev + version: 1.0 - name: Install LLVM + libc++ run: | wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 20 sudo apt-get install -y libc++-20-dev libc++abi-20-dev + ccache -M 5G || true # Set a reasonable ccache size - name: Restore ccache uses: actions/cache@v5 @@ -50,6 +49,11 @@ 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 -Dunity=off --wipe meson setup build_unity --native-file=scripts/llvm_native.txt -Dunity=on -Dunity_size=99999 --wipe