Skip to content

Commit

Permalink
tweak workflows, use published versions
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Dec 7, 2021
1 parent adbc233 commit 39e587d
Show file tree
Hide file tree
Showing 19 changed files with 48 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/blake2.yml
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion .github/workflows/fsb.yml
Original file line number Diff line number Diff line change
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/gost94.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
3 changes: 1 addition & 2 deletions .github/workflows/ripemd.yml
Original file line number Diff line number Diff line change
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

24 changes: 12 additions & 12 deletions .github/workflows/sha1.yml
Original file line number Diff line number Diff line change
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
22 changes: 11 additions & 11 deletions .github/workflows/sha2.yml
Original file line number Diff line number Diff line change
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 Down Expand Up @@ -147,5 +147,5 @@ jobs:
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 }} --release
- run: cross test --package sha2 --target ${{ matrix.target }} --release --features asm
- 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
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion .github/workflows/shabal.yml
Original file line number Diff line number Diff line change
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/sm3.yml
Original file line number Diff line number Diff line change
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/streebog.yml
Original file line number Diff line number Diff line change
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/tiger.yml
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion .github/workflows/whirlpool.yml
Original file line number Diff line number Diff line change
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
17 changes: 10 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ members = [

[profile.dev]
opt-level = 2

[patch.crates-io]
digest = { git = "https://github.com/RustCrypto/traits/", branch = "digest/v0.10" }
block-buffer = { git = "https://github.com/RustCrypto/utils", branch = "block-buffer/v0.10" }

0 comments on commit 39e587d

Please sign in to comment.