From cdb6753d52f1751663262009df717b53dfe253b6 Mon Sep 17 00:00:00 2001 From: Simon Pribylski Date: Thu, 8 Aug 2024 11:19:37 +0200 Subject: [PATCH] test new cache --- .gitea/workflows/linux.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/linux.yaml b/.gitea/workflows/linux.yaml index aeddd78..6a0e283 100644 --- a/.gitea/workflows/linux.yaml +++ b/.gitea/workflows/linux.yaml @@ -5,7 +5,7 @@ on: [push] jobs: Build: - runs-on: ubuntu-latest + runs-on: ubuntu-test steps: - name: Check out repository code uses: actions/checkout@v3 @@ -17,13 +17,14 @@ jobs: actions-cache-folder: '.xmake-cache' actions-cache-key: 'ubuntu-xmake' + - name: Packages hash + run : xmake show -l packages | grep require > packages.hash + - name: Calc deps hash uses: seepine/hash-files@v1 id: get-hash with: - patterns: | - **/xmake.lua - **/xmake/*.lua + patterns: ~/packages.hash - name: Packages cache uses: actions/cache@v4 @@ -32,7 +33,7 @@ jobs: key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }} - name: XMake config - run: xmake f -p linux -y + run: xmake f --policies=package.install_only -p linux -y - name: Build run: xmake