From ea98cf602b5f0c1692d0dbcaea0c35060ed35391 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 23 Mar 2025 16:07:59 +0100 Subject: ci: add caching, use mold for linking --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eba27cf..97439df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,17 @@ jobs: run: | export DEBIAN_FRONTED=noninteractive sudo apt-get -qq update - sudo apt-get install -y libxkbcommon-dev libgtk-3-dev + sudo apt-get install -y libxkbcommon-dev libgtk-3-dev clang mold + - 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') }} - name: Check lints - run: cargo lint + run: cargo lint --profile ci - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --profile ci -- cgit v1.2.3