mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-14 22:41:54 +00:00
cache .git folder
This commit is contained in:
12
.github/workflows/build-linux.yml
vendored
12
.github/workflows/build-linux.yml
vendored
@@ -26,6 +26,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Restore .git folder
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: .git
|
||||
key: ${{ runner.os }}-git-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-git-
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
@@ -34,12 +41,15 @@ jobs:
|
||||
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
|
||||
run: |
|
||||
python -m pip install meson
|
||||
# Set a reasonable ccache size
|
||||
ccache -M 5G || true
|
||||
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user