Merge pull request #7 from Cyfrin/ci/setup-ci-releases #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request, workflow_dispatch] | |
name: Safe Hash | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Rust Nightly (2025-01-01) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly-2025-01-01 | |
override: true | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Restore Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: | | |
cargo build | |
cargo test -- --nocapture | |
decline-openssl-dependencies: | |
name: Decline openssl | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Rust Nightly (2025-01-01) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly-2025-01-01 | |
override: true | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Restore Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: | | |
! cargo tree -i openssl --target all |