fix: update CI workflow to use actions-rs/toolchain@v1
Some checks failed
CI / test (push) Failing after 11m20s

This commit is contained in:
2026-02-05 14:58:53 +00:00
parent addedc1e4d
commit 06527a52a4

View File

@@ -2,15 +2,18 @@ name: CI
on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
timeout: 600
steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
@@ -20,6 +23,22 @@ jobs:
profile: minimal
override: true
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build project
run: cargo build --all-features
@@ -30,4 +49,4 @@ jobs:
run: cargo clippy --all-features -- -D warnings
- name: Check formatting
run: cargo fmt --check
run: cargo fmt --check -- --color=never