Skip to content

Commit 9637522

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 9637522

36 files changed

+841
-124
lines changed

.github/workflows/blake2.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
override: true
49+
- run: cargo test --no-default-features
50+
working-directory: blake2
51+
- run: cargo test
52+
working-directory: blake2
53+
simd:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v1
57+
- uses: actions-rs/toolchain@v1
58+
with:
59+
profile: minimal
60+
toolchain: nightly
61+
override: true
62+
- run: cargo test --features simd
63+
working-directory: blake2
64+
- run: cargo test --features simd_opt
65+
working-directory: blake2
66+
- run: cargo test --features simd_asm
67+
working-directory: blake2

.github/workflows/gost94.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
override: true
49+
- working-directory: gost94
50+
run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+

.github/workflows/groestl.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
override: true
49+
- working-directory: groestl
50+
run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features

.github/workflows/k12.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
override: true
49+
- working-directory: k12
50+
run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+

.github/workflows/md2.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
override: true
49+
- working-directory: md2
50+
run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+

.github/workflows/md4.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
override: true
49+
- working-directory: md4
50+
run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+

0 commit comments

Comments
 (0)