Skip to content

Add github actions

Add github actions #1

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
image: ["ubuntu-latest", "macos-latest", "windows-latest"]
rust: ["stable", "beta", "nightly", "1.80.0"]
runs-on: ubuntu-latest
steps:
- name: Install `rustup`
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal
- name: Install Rust channel
run: rustup toolchain install ${{matrix.rust}} && rustup default ${{matrix.rust}}
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose