From 3a334b3227a375e7d0e22e078e448835a9742335 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sat, 24 Feb 2024 17:21:00 +0100 Subject: [PATCH] action: cache build --- .gitea/workflows/linux.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/linux.yaml b/.gitea/workflows/linux.yaml index 890dabe..51cd8aa 100644 --- a/.gitea/workflows/linux.yaml +++ b/.gitea/workflows/linux.yaml @@ -10,14 +10,17 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 - - name: APT + - name: Install opengl run: | apt update apt install libgl-dev -y - - uses: actions/cache/restore@v4 + - name: Cache + uses: actions/cache@v4 with: - path: ~/.xmake/packages + path: | + ~/.xmake/packages + build key: 'ubuntu' - name: Prepare Xmake @@ -30,11 +33,6 @@ jobs: - name: XMake config run: xmake f -p linux -y --root - - uses: actions/cache/save@v4 - with: - path: ~/.xmake/packages - key: 'ubuntu' - - name: Build run: xmake --root