Skip to content

Merge pull request #38 from nora-coder-dot/docs-update-readme #2

Merge pull request #38 from nora-coder-dot/docs-update-readme

Merge pull request #38 from nora-coder-dot/docs-update-readme #2

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
branches:
- main
workflow_dispatch:
env:
RUST_VERSION: 1.83.0
MACOSX_DEPLOYMENT_TARGET: '12.0'
jobs:
build:
name: Build on ${{ matrix.build }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- build: linux-amd64
os: ubuntu-22.04
- build: macos-amd64
os: macos-13
- build: macos-arm64
os: macos-14
- build: windows-amd64
os: windows-latest
env:
TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: clippy, rustfmt
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --workspace --all-features --benches --examples --tests -- -D warnings
- name: Run tests
run: cargo test -r --workspace --all-features