Skip to content

Unify CI jobs and replace unmaintend actions-rs. #73

Unify CI jobs and replace unmaintend actions-rs.

Unify CI jobs and replace unmaintend actions-rs. #73

Workflow file for this run

name: CI
on:
push: { branches: "main" }
pull_request: { branches: "*" }
jobs:
build_and_test:
name: Build and test with ${{ matrix.rust }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable, nightly, 1.65.0]
runs-on: ${{ matrix.os }}
steps:
- name: Restore cached crates.io index
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-rust-${{ matrix.rust }}
- name: Checkout code
uses: actions/checkout@master
- name: Install Rust ${{ matrix.rust }}
run: |
rustup install ${{ matrix.rust }} --profile minimal
rustup default ${{ matrix.rust }}
- name: Build
run: cargo build --release --all-features --color=always
- name: Test
run: cargo test --release --all-features --color=always