Skip to content

Use non deprecated dtolnay/rust-toolchain github actions #242

Use non deprecated dtolnay/rust-toolchain github actions

Use non deprecated dtolnay/rust-toolchain github actions #242

Workflow file for this run

on: [push]
name: CI
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
jobs:
build_and_test:
name: build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- 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: Build
run: cargo build --release --all-features
- name: Tests
run: cargo test