Skip to content

Commit

Permalink
CI: add configuration for Gift cipher (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Jul 30, 2024
1 parent c7ca2b0 commit 4f0bece
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 9 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/gift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: gift

on:
pull_request:
paths:
- "gift/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: gift

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
2 changes: 1 addition & 1 deletion gift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.0"
description = "Gift block cipher"
authors = ["RustCrypto Developers", "Schmid7k"]
license = "MIT OR Apache-2.0"
rust-version = "1.56"
rust-version = "1.65"
edition = "2021"
readme = "README.md"
documentation = "https://docs.rs/gift-cipher"
Expand Down
16 changes: 8 additions & 8 deletions gift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ USE AT YOUR OWN RISK!

## Minimum Supported Rust Version

Rust **1.56** or higher.
Rust **1.65** or higher.

Minimum supported Rust version can be changed in the future, but it will be
done with a minor version bump.
Expand All @@ -53,18 +53,18 @@ dual licensed as above, without any additional terms or conditions.

[//]: # (badges)

[crate-image]: https://img.shields.io/crates/v/gift_cipher.svg
[crate-link]: https://crates.io/crates/gift_cipher
[docs-image]: https://docs.rs/gift_cipher/badge.svg
[docs-link]: https://docs.rs/gift_cipher/
[crate-image]: https://img.shields.io/crates/v/gift-cipher.svg
[crate-link]: https://crates.io/crates/gift-cipher
[docs-image]: https://docs.rs/gift-cipher/badge.svg
[docs-link]: https://docs.rs/gift-cipher/
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.56+-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.65+-blue.svg
[hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0-red.svg
[hazmat-link]: https://github.com/RustCrypto/meta/blob/master/HAZMAT.md
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260039-block-ciphers
[build-image]: https://github.com/RustCrypto/block-ciphers/workflows/gift_cipher/badge.svg?branch=master&event=push
[build-link]: https://github.com/RustCrypto/block-ciphers/actions?query=workflow%3Agift_cipher
[build-image]: https://github.com/RustCrypto/block-ciphers/workflows/gift-cipher/badge.svg?branch=master&event=push
[build-link]: https://github.com/RustCrypto/block-ciphers/actions?query=workflow%3Agift-cipher

[//]: # (general links)

Expand Down

0 comments on commit 4f0bece

Please sign in to comment.