diff --git a/.gitea/workflows/linux.yaml b/.gitea/workflows/linux.yaml index f3a192f..67910ec 100644 --- a/.gitea/workflows/linux.yaml +++ b/.gitea/workflows/linux.yaml @@ -10,17 +10,31 @@ jobs: - name: Install deps run : | apt update - apt install -y libsdl2-dev libglew-dev - + apt install -y libsdl2-dev libglew-dev + - name: Check out repository code uses: actions/checkout@v3 - - name: Prepare Xmake + - name: Prepare XMake uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: latest actions-cache-folder: '.xmake-cache' - actions-cache-key: 'ubuntu' + actions-cache-key: 'xmake-ubuntu' + + - name: Calc deps hash + uses: seepine/hash-files@v1 + id: get-hash + with: + patterns: | + **/xmake.lua + **/xmake/*.lua + + - name: Packages cache + uses: actions/cache@v4 + with: + path: ~/.xmake + key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }} - name: XMake config run: xmake f -p linux -y --root @@ -29,4 +43,4 @@ jobs: run: xmake --root - name: Test - run: xmake test --root \ No newline at end of file + run: xmake test --root \ No newline at end of file