mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
CI: Remove redundant ccache options
This commit is contained in:
parent
d5cf90c713
commit
d393a09a58
9
.github/workflows/build-linux.yml
vendored
9
.github/workflows/build-linux.yml
vendored
|
|
@ -32,9 +32,6 @@ jobs:
|
||||||
sudo apt-get update
|
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
|
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
|
python -m pip install meson
|
||||||
# Set a reasonable ccache size
|
|
||||||
ccache -M 5G || true
|
|
||||||
python -m pip install meson
|
|
||||||
|
|
||||||
- name: Restore ccache
|
- name: Restore ccache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|
@ -52,10 +49,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CC: "ccache clang"
|
CC: "ccache clang"
|
||||||
CXX: "ccache clang++"
|
CXX: "ccache clang++"
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$CCACHE_DIR"
|
|
||||||
export CCACHE_DIR="$CCACHE_DIR"
|
|
||||||
meson setup build --wipe --native-file=./scripts/llvm_native.txt
|
meson setup build --wipe --native-file=./scripts/llvm_native.txt
|
||||||
|
|
||||||
- name: Build with Meson
|
- name: Build with Meson
|
||||||
|
|
@ -64,7 +58,6 @@ jobs:
|
||||||
CXX: "ccache clang++"
|
CXX: "ccache clang++"
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
CCACHE_DIR: ${{ runner.temp }}/ccache
|
||||||
run: |
|
run: |
|
||||||
export CCACHE_DIR="${{ runner.temp }}/ccache"
|
|
||||||
# Use all available cores for faster parallel builds
|
# Use all available cores for faster parallel builds
|
||||||
meson compile -C build -j $(nproc) -v Minecraft.Client
|
meson compile -C build -j $(nproc) -v Minecraft.Client
|
||||||
|
|
||||||
|
|
@ -76,4 +69,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: minecraft-client-linux-${{ github.sha }}
|
name: minecraft-client-linux-${{ github.sha }}
|
||||||
path: build/Minecraft.Client/Minecraft.Client
|
path: build/Minecraft.Client/Minecraft.Client
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue