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 28, 2020
1 parent ad3797d commit aede0b8
Show file tree
Hide file tree
Showing 12 changed files with 1,237 additions and 59 deletions.
56 changes: 56 additions & 0 deletions .github/workspace/aes-ctr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: aes-ctr

on:
pull_request:
paths:
- "aes-ctr/**"
- "Cargo.*"
push:
branches: master
paths:
- "aes-ctr/**"
- "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: aes-ctr
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 }}
override: true
- run: cargo test
working-directory: aes-ctr
- run: cargo test --release
working-directory: aes-ctr
- run: cargo test --release
env:
RUSTFLAGS: "-C target-feature=+aes,+sse2,+ssse3"
working_directory: aes-ctr
52 changes: 52 additions & 0 deletions .github/workspace/cfb-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: cfb-mode

on:
pull_request:
paths:
- "cfb-mode/**"
- "Cargo.*"
push:
branches: master
paths:
- "cfb-mode/**"
- "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: cfb-mode
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 }}
override: true
- run: cargo test
working-directory: cfb-mode
- run: cargo test --release
working-directory: cfb-mode
52 changes: 52 additions & 0 deletions .github/workspace/cfb8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: cfb8

on:
pull_request:
paths:
- "cfb8/**"
- "Cargo.*"
push:
branches: master
paths:
- "cfb8/**"
- "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: cfb8
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 }}
override: true
- run: cargo test
working-directory: cfb8
- run: cargo test --release
working-directory: cfb8
60 changes: 60 additions & 0 deletions .github/workspace/chacha20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: chacha20

on:
pull_request:
paths:
- "chacha20/**"
- "Cargo.*"
push:
branches: master
paths:
- "chacha20/**"
- "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: chacha20
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 }}
override: true
- run: cargo test
working-directory: chacha20
- run: cargo test --release
working-directory: chacha20
- run: cargo test --release
env:
RUSTFLAGS: "-Ctarget-feature=+sse2"
working-directory: chacha20
- run: cargo test --release
env:
RUSTFLAGS: "-Ctarget-feature=+avx2"
working-directory: chacha20
52 changes: 52 additions & 0 deletions .github/workspace/ctr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: ctr

on:
pull_request:
paths:
- "ctr/**"
- "Cargo.*"
push:
branches: master
paths:
- "ctr/**"
- "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: ctr
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 }}
override: true
- run: cargo test
working-directory: ctr
- run: cargo test --release
working-directory: ctr
52 changes: 52 additions & 0 deletions .github/workspace/hc-256.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: hc-256

on:
pull_request:
paths:
- "hc-256/**"
- "Cargo.*"
push:
branches: master
paths:
- "hc-256/**"
- "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: hc-256
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 }}
override: true
- run: cargo test
working-directory: hc-256
- run: cargo test --release
working-directory: hc-256
52 changes: 52 additions & 0 deletions .github/workspace/ofb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: ofb

on:
pull_request:
paths:
- "ofb/**"
- "Cargo.*"
push:
branches: master
paths:
- "ofb/**"
- "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: ofb
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 }}
override: true
- run: cargo test
working-directory: ofb
- run: cargo test --release
working-directory: ofb
Loading

0 comments on commit aede0b8

Please sign in to comment.