mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 19:17:12 +00:00
cache .git folder
This commit is contained in:
parent
ffd3899532
commit
28eef4e3f4
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue