From dd91750e285d95b686fc749b5f9ac043f2b7d930 Mon Sep 17 00:00:00 2001 From: Simon Pribylski Date: Mon, 3 Jun 2024 18:36:27 +0200 Subject: [PATCH] updated runner --- .gitea/workflows/linux.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/linux.yaml b/.gitea/workflows/linux.yaml index 4dbad50..d17aa89 100644 --- a/.gitea/workflows/linux.yaml +++ b/.gitea/workflows/linux.yaml @@ -5,7 +5,7 @@ on: [push] jobs: Build: - runs-on: ubuntu-test + runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v3 @@ -17,22 +17,25 @@ jobs: actions-cache-folder: '.xmake-cache' actions-cache-key: 'ubuntu-xmake' - - name: Install opengl - run: | - apt update - apt install libgl-dev -y + - name: Calc deps hash + uses: seepine/hash-files@v1 + id: get-hash + with: + patterns: | + **/xmake.lua + **/xmake/*.lua - - name: Cache + - name: Packages cache uses: actions/cache@v4 with: path: ~/.xmake - key: 'ubuntu' + key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }} - name: XMake config - run: xmake f -p linux -y --root + run: xmake f -p linux -y - name: Build - run: xmake --root + run: xmake - name: Test - run: xmake test --root \ No newline at end of file + run: xmake test \ No newline at end of file