mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
|
@ -34,12 +41,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
packages: build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev libglm-dev
|
packages: build-essential ccache python3 python3-pip ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev libglm-dev
|
||||||
version: 1.0
|
version: 1.0
|
||||||
|
run: |
|
||||||
|
python -m pip install meson
|
||||||
|
# Set a reasonable ccache size
|
||||||
|
ccache -M 5G || true
|
||||||
|
|
||||||
- name: Install LLVM + libc++
|
- name: Install LLVM + libc++
|
||||||
run: |
|
run: |
|
||||||
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 20
|
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 20
|
||||||
sudo apt-get install -y libc++-20-dev libc++abi-20-dev
|
sudo apt-get install -y libc++-20-dev libc++abi-20-dev
|
||||||
ccache -M 5G || true # Set a reasonable ccache size
|
|
||||||
|
|
||||||
- name: Restore ccache
|
- name: Restore ccache
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v5
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue