From 3285353006f11b15c70c1c34b7176b4dd09aeb44 Mon Sep 17 00:00:00 2001 From: jmb05 Date: Tue, 3 Nov 2026 01:31:23 +0100 Subject: [PATCH] Add cache step and missing dependency --- .gitea/workflows/build.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 33e3f8a..3a7ae5f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,6 +18,19 @@ jobs: - name: Print Os release run: cat /etc/os-release + - name: Cache Cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + - name: Install system dependencies run: | sudo apt-get update @@ -25,7 +38,8 @@ jobs: build-essential \ pkg-config \ libgtk-4-dev \ - libgtk4-layer-shell-dev + libgtk4-layer-shell-dev \ + libudev-dev - name: Install Rust run: |