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 25, 2020
1 parent ec4163e commit d209242
Show file tree
Hide file tree
Showing 20 changed files with 979 additions and 86 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/aes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: aes

on:
pull_request:
paths:
- "aes/**"
- "Cargo.*"
push:
branches: master
paths:
- "aes/**"
- "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: aes/aes
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 }}
- run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
working-directory: aes/aes
38 changes: 38 additions & 0 deletions .github/workflows/aesni.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: aesni

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

jobs:
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: aes/aesni
env:
CARGO_INCREMENTAL: 0
RUSTDOCFLAGS: "-C target-feature=+aes,+ssse3"
RUSTFLAGS: "-C target-feature=+aes,+ssse3"
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
53 changes: 53 additions & 0 deletions .github/workflows/block-modes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: block-modes

on:
pull_request:
paths:
- "block-modes/**"
- "Cargo.*"
push:
branches: master
paths:
- "block-modes/**"
- "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: block-modes
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 }}
- run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
working-directory: block-modes
53 changes: 53 additions & 0 deletions .github/workflows/blowfish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: blowfish

on:
pull_request:
paths:
- "blowfish/**"
- "Cargo.*"
push:
branches: master
paths:
- "blowfish/**"
- "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: blowfish
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 }}
- run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
working-directory: blowfish
53 changes: 53 additions & 0 deletions .github/workflows/cast5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: cast5

on:
pull_request:
paths:
- "cast5/**"
- "Cargo.*"
push:
branches: master
paths:
- "cast5/**"
- "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: cast5
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 }}
- run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
working-directory: cast5
53 changes: 53 additions & 0 deletions .github/workflows/des.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: des

on:
pull_request:
paths:
- "des/**"
- "Cargo.*"
push:
branches: master
paths:
- "des/**"
- "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: des
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 }}
- run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
working-directory: des
53 changes: 53 additions & 0 deletions .github/workflows/idea.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: idea

on:
pull_request:
paths:
- "idea/**"
- "Cargo.*"
push:
branches: master
paths:
- "idea/**"
- "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: idea
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 }}
- run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
working-directory: idea
Loading

0 comments on commit d209242

Please sign in to comment.