Skip to content

Merge pull request #2 from jhfrontz/fix_decrypt_length #15

Merge pull request #2 from jhfrontz/fix_decrypt_length

Merge pull request #2 from jhfrontz/fix_decrypt_length #15

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ main ]
pull_request:
jobs:
test-latest:
name: Test on latest Rust
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Select toolchain"
uses: dtolnay/rust-toolchain@stable
- name: "Rust Version"
run: rustc --version
- name: Setup
run: |
sudo apt-get update && sudo apt-get install -y valgrind
cargo install cargo-valgrind
- name: Run tests
run: |
cargo valgrind test
cargo test
cargo test --doc
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: target-latest
path: target
retention-days: 14
test-msrv:
name: Test on Rust MSRV (1.63.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Select toolchain"
uses: dtolnay/[email protected]
- name: "Rust Version"
run: rustc --version
- name: Setup
run: |
sudo apt-get update && sudo apt-get install -y valgrind
cargo install cargo-valgrind --version 2.0.0
- name: Run tests
run: |
rm Cargo.lock
cargo +1.63.0 generate-lockfile
cargo valgrind test
cargo test
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: target-msrv
path: target
retention-days: 14
Format:
name: Format - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Select toolchain"
uses: dtolnay/rust-toolchain@nightly
- name: "Install rustfmt"
run: rustup component add rustfmt
- name: "Check formatting"
run: cargo +nightly fmt --all -- --check