From d3d51a8650c315b3e552aa1591a8aae347f9b98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Wed, 16 Feb 2022 23:14:22 +0300 Subject: [PATCH] use action from RustCrypto/actions --- .github/workflows/aes.yml | 12 +---------- .github/workflows/blowfish.yml | 32 ++++++++++------------------ .github/workflows/cast5.yml | 32 ++++++++++------------------ .github/workflows/des.yml | 32 ++++++++++------------------ .github/workflows/idea.yml | 32 ++++++++++------------------ .github/workflows/kuznyechik.yml | 36 ++++++++++++-------------------- .github/workflows/magma.yml | 32 ++++++++++------------------ .github/workflows/rc2.yml | 32 ++++++++++------------------ .github/workflows/serpent.yml | 32 ++++++++++------------------ .github/workflows/sm4.yml | 32 ++++++++++------------------ .github/workflows/threefish.yml | 32 ++++++++++------------------ .github/workflows/twofish.yml | 32 ++++++++++------------------ 12 files changed, 124 insertions(+), 244 deletions(-) diff --git a/.github/workflows/aes.yml b/.github/workflows/aes.yml index 13226e32..3e0e0f50 100644 --- a/.github/workflows/aes.yml +++ b/.github/workflows/aes.yml @@ -59,17 +59,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions # Tests for the AES-NI backend aesni: diff --git a/.github/workflows/blowfish.yml b/.github/workflows/blowfish.yml index ab3bf18d..61b3bb8e 100644 --- a/.github/workflows/blowfish.yml +++ b/.github/workflows/blowfish.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/cast5.yml b/.github/workflows/cast5.yml index 3a3b65fb..024d1e57 100644 --- a/.github/workflows/cast5.yml +++ b/.github/workflows/cast5.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/des.yml b/.github/workflows/des.yml index 40c44e62..b7d2a6b8 100644 --- a/.github/workflows/des.yml +++ b/.github/workflows/des.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/idea.yml b/.github/workflows/idea.yml index 9273c286..66ff17ae 100644 --- a/.github/workflows/idea.yml +++ b/.github/workflows/idea.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/kuznyechik.yml b/.github/workflows/kuznyechik.yml index 0da7d52d..43cd7fd5 100644 --- a/.github/workflows/kuznyechik.yml +++ b/.github/workflows/kuznyechik.yml @@ -43,17 +43,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -63,17 +53,17 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: | - cargo test - cargo test --all-features - - env: - RUSTFLAGS: "-Dwarnings --cfg kuznyechik_force_soft" - run: | + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: | cargo test cargo test --all-features + - env: + RUSTFLAGS: "-Dwarnings --cfg kuznyechik_force_soft" + run: | + cargo test + cargo test --all-features diff --git a/.github/workflows/magma.yml b/.github/workflows/magma.yml index 83bb24ef..47702a4f 100644 --- a/.github/workflows/magma.yml +++ b/.github/workflows/magma.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/rc2.yml b/.github/workflows/rc2.yml index 71e5bfdf..592b5b26 100644 --- a/.github/workflows/rc2.yml +++ b/.github/workflows/rc2.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/serpent.yml b/.github/workflows/serpent.yml index 29c87225..595c81ea 100644 --- a/.github/workflows/serpent.yml +++ b/.github/workflows/serpent.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/sm4.yml b/.github/workflows/sm4.yml index 7f810fc8..375cbeb5 100644 --- a/.github/workflows/sm4.yml +++ b/.github/workflows/sm4.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/threefish.yml b/.github/workflows/threefish.yml index ea1c5142..cda693b0 100644 --- a/.github/workflows/threefish.yml +++ b/.github/workflows/threefish.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features diff --git a/.github/workflows/twofish.yml b/.github/workflows/twofish.yml index f97f9b0b..3a650d25 100644 --- a/.github/workflows/twofish.yml +++ b/.github/workflows/twofish.yml @@ -40,17 +40,7 @@ jobs: minimal-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - profile: minimal - - run: rm ../Cargo.toml - - run: rm ../Cargo.lock - - run: cargo update -Z minimal-versions - - run: cargo test --release - - run: cargo test --release --all-features + - uses: RustCrypto/actions/minimal-versions@min_versions test: runs-on: ubuntu-latest @@ -60,13 +50,13 @@ jobs: - 1.56.0 # MSRV - stable steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true - profile: minimal - - run: cargo check --all-features - - run: cargo test --no-default-features - - run: cargo test - - run: cargo test --all-features + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + profile: minimal + - run: cargo check --all-features + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features