Skip to content

Support GHA.

Support GHA. #2

Workflow file for this run

name: Rust
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
schedule:
- cron: '0 3 * * 0' # Every sunday at 3am UTC.
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo check --all-targets
- name: Run tests
run: cargo test --all-targets
linting:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install tools
run: |
rustup component add clippy
rustup component add rustfmt
- name: lint
run: cargo clippy --all-features -- -D warnings
- name: format
run: cargo fmt -- --check