Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Rust

on:
push:
branches:
- main
paths:
- .github/workflows/rust.yml
- Cargo.*
- src/**
pull_request:
paths:
- .github/workflows/rust.yml
- Cargo.*
- src/**
workflow_dispatch: { }

env:
CARGO_TERM_COLOR: always

jobs:
Rust:
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly

os:
- ubuntu-latest
- macos-latest
- windows-latest

runs-on: ${{ matrix.os }}

steps:
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}

- uses: actions/checkout@v4

- run: cargo build --verbose
shell: bash

- run: cargo test --verbose
shell: bash