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,24 +2,43 @@ name: CI
on: on:
push: push:
branches: [main] branches:
- main
pull_request: pull_request:
branches: [main] branches:
- main
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout: 600
steps: steps:
- name: Checkout repository - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Rust - name: Set up Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
profile: minimal profile: minimal
override: true 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 - name: Build project
run: cargo build --all-features run: cargo build --all-features
@@ -30,4 +49,4 @@ jobs:
run: cargo clippy --all-features -- -D warnings run: cargo clippy --all-features -- -D warnings
- name: Check formatting - name: Check formatting
run: cargo fmt --check run: cargo fmt --check -- --color=never