Skip to content

Commit

Permalink
Switch to GitHub Actions; MSRV 1.41+
Browse files Browse the repository at this point in the history
The MSRV bump is necessary to check in a merge-friendly Cargo.lock
(which is helpful for caching).

We'll want to do this bump anyway soon for `generic-array` v0.14. See:

<RustCrypto/traits#95>
  • Loading branch information
tarcieri committed May 27, 2020
1 parent 7967244 commit b0f2a18
Show file tree
Hide file tree
Showing 36 changed files with 825 additions and 124 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/blake2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: blake2

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
working-directory: blake2
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- run: cargo test --no-default-features
working-directory: blake2
- run: cargo test
working-directory: blake2
simd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- run: cargo test --features simd
working-directory: blake2
- run: cargo test --features simd_opt
working-directory: blake2
- run: cargo test --features simd_asm
working-directory: blake2
54 changes: 54 additions & 0 deletions .github/workflows/gost94.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: gost94

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: gost94
run: cargo build --no-default-features --release --target ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- working-directory: gost94
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
53 changes: 53 additions & 0 deletions .github/workflows/groestl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: groestl

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: groestl
run: cargo build --no-default-features --release --target ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- working-directory: groestl
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
54 changes: 54 additions & 0 deletions .github/workflows/k12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: k12

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
# - thumbv7em-none-eabi # TODO: no_std w/o liballoc
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: k12
run: cargo build --no-default-features --release --target ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- working-directory: k12
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
54 changes: 54 additions & 0 deletions .github/workflows/md2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: md2

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: md2
run: cargo build --no-default-features --release --target ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- working-directory: md2
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
54 changes: 54 additions & 0 deletions .github/workflows/md4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: md4

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: md4
run: cargo build --no-default-features --release --target ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- working-directory: md4
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
55 changes: 55 additions & 0 deletions .github/workflows/md5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: md5

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
working-directory: md5
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
- run: cargo check
working-directory: md5
- run: cargo test --no-default-features
working-directory: md5
- run: cargo test
working-directory: md5
- run: cargo test --features asm
working-directory: md5
Loading

0 comments on commit b0f2a18

Please sign in to comment.