Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Apr 6, 2024
1 parent f0046c2 commit eb70c00
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 32 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
override: true
components: clippy, rustfmt
- name: Check format
run: cargo fmt --all -- --check
run: cargo fmt --all
- name: Check fix
run: cargo fix && cargo fix
- name: Check with clippy
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
override: true
components: clippy, rustfmt
- name: Check format
run: cargo fmt --all -- --check
run: cargo fmt --all
- name: Check fix
run: cargo fix && cargo fix
- name: Check with clippy
Expand All @@ -76,4 +76,15 @@ jobs:
override: true
- name: Build on nightly
run: cargo build --release

publish-crate:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [ test ]
steps:
- name: Set up Rust
uses: hecrj/setup-rust-action@v2
- uses: actions/checkout@v4
- name: Publish
shell: bash
run: |
cargo publish --token ${{ secrets.CRATES_GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

4 changes: 1 addition & 3 deletions src/async_digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ pub async fn try_async_digest<D: TrySha256Digest>(input: D) -> Result<String, D:
/// });
/// ```
#[cfg(feature = "native_openssl")]
pub async fn try_async_openssl_digest<D: TrySha256Digest>(
input: D,
) -> Result<String, D::Error> {
pub async fn try_async_openssl_digest<D: TrySha256Digest>(input: D) -> Result<String, D::Error> {
input.async_openssl_digest().await
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ use std::path::Path;

#[cfg(feature = "async")]
pub mod async_digest;
#[cfg(test)]
mod tests;
#[cfg(feature = "native_openssl")]
mod openssl_sha256;
#[cfg(test)]
mod tests;

/// sha256 digest string
///
Expand Down

0 comments on commit eb70c00

Please sign in to comment.