Skip to content

Commit 7c26adc

Browse files
committed
Switch to GitHub Actions; MSRV 1.41+
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>
1 parent 7967244 commit 7c26adc

36 files changed

+820
-124
lines changed

.github/workflows/blake2.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: blake2
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "blake2/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "blake2/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
34+
working-directory: blake2
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- run: cargo test --no-default-features
49+
working-directory: blake2
50+
- run: cargo test
51+
working-directory: blake2
52+
- run: cargo test --features simd
53+
working-directory: blake2
54+
- run: cargo test --features simd_opt
55+
working-directory: blake2
56+
- run: cargo test --features simd_asm
57+
working-directory: blake2

.github/workflows/gost94.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: gost94
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "gost94/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "gost94/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: gost94
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- working-directory: gost94
49+
run: |
50+
cargo check --all-features
51+
cargo test --no-default-features
52+
cargo test
53+
cargo test --all-features
54+

.github/workflows/groestl.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: groestl
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "groestl/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "groestl/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: groestl
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- working-directory: groestl
49+
run: |
50+
cargo check --all-features
51+
cargo test --no-default-features
52+
cargo test
53+
cargo test --all-features

.github/workflows/k12.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: k12
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "k12/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "k12/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
# - thumbv7em-none-eabi # TODO: no_std w/o liballoc
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: k12
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- working-directory: k12
49+
run: |
50+
cargo check --all-features
51+
cargo test --no-default-features
52+
cargo test
53+
cargo test --all-features
54+

.github/workflows/md2.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: md2
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "md2/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "md2/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: md2
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- working-directory: md2
49+
run: |
50+
cargo check --all-features
51+
cargo test --no-default-features
52+
cargo test
53+
cargo test --all-features
54+

.github/workflows/md4.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: md4
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "md4/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "md4/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: md4
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- working-directory: md4
49+
run: |
50+
cargo check --all-features
51+
cargo test --no-default-features
52+
cargo test
53+
cargo test --all-features
54+

.github/workflows/md5.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: md5
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "md5/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "md5/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: md5
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- working-directory: md5
49+
run: |
50+
cargo check --all-features
51+
cargo test --no-default-features
52+
cargo test
53+
cargo test --features asm
54+
cargo test --all-features
55+

0 commit comments

Comments
 (0)