cache .git folder

This commit is contained in:
Tropical 2026-04-04 11:43:09 -05:00
parent ffd3899532
commit 28eef4e3f4

View file

@ -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