Skip to content

Commit

Permalink
CI: redo configuration (#47)
Browse files Browse the repository at this point in the history
Updates to a more modern CI configuration
  • Loading branch information
tarcieri authored Nov 18, 2023
1 parent 2a5d227 commit a95b80f
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 114 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/cryptouri.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: cryptouri

on:
pull_request:
paths:
- ".github/workflows/cryptouri.yml"
- "src/**"
- "Cargo.*"
push:
branches: main

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: 1.56.0 # MSRV
- rust: stable

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --release

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.56.0
components: clippy
- run: cargo clippy --all --all-features -- -D warnings

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- run: cargo doc --all-features

rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check
114 changes: 0 additions & 114 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit a95b80f

Please sign in to comment.