Skip to content

Commit

Permalink
update crates to digest v0.10 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Dec 7, 2021
1 parent d6c8c3c commit 75298d3
Show file tree
Hide file tree
Showing 305 changed files with 7,774 additions and 9,956 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/blake2.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/fsb.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
rust:
- 1.47.0 # MSRV
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
Expand All @@ -35,14 +35,14 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.47.0 # MSRV
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
Expand All @@ -54,5 +54,4 @@ jobs:
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --features asm
- run: cargo test --all-features
3 changes: 1 addition & 2 deletions .github/workflows/gost94.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand All @@ -55,4 +55,3 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

2 changes: 1 addition & 1 deletion .github/workflows/groestl.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/k12.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand All @@ -55,4 +55,3 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

3 changes: 1 addition & 2 deletions .github/workflows/md2.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand All @@ -55,4 +55,3 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

3 changes: 1 addition & 2 deletions .github/workflows/md4.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand All @@ -55,4 +55,3 @@ jobs:
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

2 changes: 1 addition & 1 deletion .github/workflows/md5.yml
Expand Up @@ -38,7 +38,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand Down
@@ -1,16 +1,16 @@
name: ripemd320
name: ripemd

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

defaults:
run:
working-directory: ripemd320
working-directory: ripemd

env:
CARGO_INCREMENTAL: 0
Expand All @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/ripemd160.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/ripemd256.yml

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/sha1.yml
Expand Up @@ -36,7 +36,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

# Linux tests
linux:
Expand Down Expand Up @@ -69,10 +69,10 @@ jobs:
target: ${{ matrix.target }}
override: true
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }} --release --no-default-features
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }} --release --features asm
- run: cargo test --target ${{ matrix.target }} --release --all-features
- run: cargo test --target ${{ matrix.target }} --no-default-features
- run: cargo test --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} --features asm
- run: cargo test --target ${{ matrix.target }} --all-features

# macOS tests
macos:
Expand All @@ -91,10 +91,10 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: x86_64-apple-darwin
override: true
- run: cargo test --release --no-default-features
- run: cargo test --release
- run: cargo test --release --features asm
- run: cargo test --release --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --features asm
- run: cargo test --all-features

# Windows tests
windows:
Expand All @@ -118,7 +118,7 @@ jobs:
target: ${{ matrix.target }}
override: true
- uses: msys2/setup-msys2@v2
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }}

# Cross-compiled tests
# *** NOTE: Currently broken with `asm` feature enabled! See:
Expand All @@ -144,5 +144,5 @@ jobs:
# target: ${{ matrix.target }}
# override: true
# - run: cargo install cross
# - run: cross test --target ${{ matrix.target }} --release
# - run: cross test --target ${{ matrix.target }} --release --features asm
# - run: cross test --target ${{ matrix.target }}
# - run: cross test --target ${{ matrix.target }} --features asm
33 changes: 21 additions & 12 deletions .github/workflows/sha2.yml
Expand Up @@ -36,7 +36,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

# Linux tests
linux:
Expand Down Expand Up @@ -67,10 +67,10 @@ jobs:
target: ${{ matrix.target }}
override: true
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }} --release --no-default-features
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }} --release --features asm
- run: cargo test --target ${{ matrix.target }} --release --all-features
- run: cargo test --target ${{ matrix.target }} --no-default-features
- run: cargo test --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} --features asm
- run: cargo test --target ${{ matrix.target }} --all-features

# macOS tests
macos:
Expand All @@ -89,9 +89,9 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: x86_64-apple-darwin
override: true
- run: cargo test --release --no-default-features
- run: cargo test --release
- run: cargo test --release --features asm
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --features asm

# Windows tests
windows:
Expand All @@ -115,7 +115,7 @@ jobs:
target: ${{ matrix.target }}
override: true
- uses: msys2/setup-msys2@v2
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }}

# Cross-compiled tests
cross:
Expand All @@ -129,6 +129,10 @@ jobs:
rust: stable

runs-on: ubuntu-latest
defaults:
run:
# Cross mounts only current package, i.e. by default it ignores workspace's Cargo.toml
working-directory: .
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
Expand All @@ -137,6 +141,11 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo install cross
- run: cross test --target ${{ matrix.target }} --release
- run: cross test --target ${{ matrix.target }} --release --features asm
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/rust-embedded/cross/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
- run: cross test --package sha2 --target ${{ matrix.target }}
- run: cross test --package sha2 --target ${{ matrix.target }} --features asm
2 changes: 1 addition & 1 deletion .github/workflows/sha3.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 75298d3

Please sign in to comment.