Skip to content

Commit 9e9a1e4

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 ec4163e commit 9e9a1e4

19 files changed

+816
-85
lines changed

.github/workflows/aes.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: aes
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "aes/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "aes/**"
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: aes/aes
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+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: aes/aes

.github/workflows/aesni.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: aesni
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "aes/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "aes/**"
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: aes/aesni
34+
env:
35+
CARGO_INCREMENTAL: 0
36+
RUSTDOCFLAGS: "-C target-feature=+aes,+ssse3"
37+
RUSTFLAGS: "-C target-feature=+aes,+ssse3"
38+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
39+
test:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
rust:
44+
- 1.41.0 # MSRV
45+
- stable
46+
steps:
47+
- uses: actions/checkout@v1
48+
- uses: actions-rs/toolchain@v1
49+
with:
50+
profile: minimal
51+
toolchain: ${{ matrix.rust }}
52+
- working-directory: aes/aesni
53+
env:
54+
CARGO_INCREMENTAL: 0
55+
RUSTDOCFLAGS: "-C target-feature=+aes,+ssse3"
56+
RUSTFLAGS: "-C target-feature=+aes,+ssse3"
57+
run: |
58+
cargo check --all-features
59+
cargo test --no-default-features
60+
cargo test
61+
cargo test --all-features
62+

.github/workflows/block-modes.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: block-modes
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "block-modes/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "block-modes/**"
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: block-modes
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+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: block-modes

.github/workflows/blowfish.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: blowfish
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "blowfish/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "blowfish/**"
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: blowfish
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+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: blowfish

.github/workflows/cast5.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: cast5
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "cast5/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "cast5/**"
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: cast5
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+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: cast5

.github/workflows/des.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: des
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "des/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "des/**"
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: des
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+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: des

.github/workflows/idea.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: idea
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "idea/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "idea/**"
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: idea
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+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: idea

0 commit comments

Comments
 (0)