From 9982ce0ee6c4ba14098fdeeb5a53603b527666a9 Mon Sep 17 00:00:00 2001 From: Akhil Velagapudi Date: Tue, 29 Oct 2019 22:18:17 -0700 Subject: [PATCH 1/2] initial workspace workflow shared by all crates --- .github/workflows/workspace.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/workspace.yml diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml new file mode 100644 index 000000000..cf254e50e --- /dev/null +++ b/.github/workflows/workspace.yml @@ -0,0 +1,45 @@ +name: workspace +on: +- push +- pull_request +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.36.0 # workspace MSRV + 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 + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: clippy + - run: cargo clippy --all-features -- -D warnings + no_std: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + target: thumbv7em-none-eabi + - run: cargo build --target thumbv7em-none-eabi From 73f138cdc9624d2d441c78a63908872bd6e7f817 Mon Sep 17 00:00:00 2001 From: Akhil Velagapudi Date: Tue, 29 Oct 2019 22:19:01 -0700 Subject: [PATCH 2/2] crate specific workflows for older MSRVs and custom feature sets --- .github/workflows/block-cipher-trait.yml | 27 ++++++++++++++++++++++++ .github/workflows/crypto-mac.yml | 27 ++++++++++++++++++++++++ .github/workflows/digest.yml | 27 ++++++++++++++++++++++++ .github/workflows/stream-cipher.yml | 27 ++++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 .github/workflows/block-cipher-trait.yml create mode 100644 .github/workflows/crypto-mac.yml create mode 100644 .github/workflows/digest.yml create mode 100644 .github/workflows/stream-cipher.yml diff --git a/.github/workflows/block-cipher-trait.yml b/.github/workflows/block-cipher-trait.yml new file mode 100644 index 000000000..886c64d50 --- /dev/null +++ b/.github/workflows/block-cipher-trait.yml @@ -0,0 +1,27 @@ +name: block-cipher-trait +on: + push: + paths: + - 'block-cipher-trait/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.21.0 # MSRV + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + - run: | + cargo check --all-features + cargo test --features dev + cargo test --features std + cargo test --all-features + working-directory: block-cipher-trait diff --git a/.github/workflows/crypto-mac.yml b/.github/workflows/crypto-mac.yml new file mode 100644 index 000000000..5a0e82b9d --- /dev/null +++ b/.github/workflows/crypto-mac.yml @@ -0,0 +1,27 @@ +name: crypto-mac +on: + push: + paths: + - 'crypto-mac/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.21.0 # MSRV + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + - run: | + cargo check --all-features + cargo test --features dev + cargo test --features std + cargo test --all-features + working-directory: crypto-mac diff --git a/.github/workflows/digest.yml b/.github/workflows/digest.yml new file mode 100644 index 000000000..706487c8a --- /dev/null +++ b/.github/workflows/digest.yml @@ -0,0 +1,27 @@ +name: digest +on: + push: + paths: + - 'digest/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.21.0 # MSRV + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + - run: | + cargo check --all-features + cargo test --features dev + cargo test --features std + cargo test --all-features + working-directory: digest diff --git a/.github/workflows/stream-cipher.yml b/.github/workflows/stream-cipher.yml new file mode 100644 index 000000000..9e3a22d14 --- /dev/null +++ b/.github/workflows/stream-cipher.yml @@ -0,0 +1,27 @@ +name: stream-cipher +on: + push: + paths: + - 'stream-cipher/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.21.0 # MSRV + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + - run: | + cargo check --all-features + cargo test --features dev + cargo test --features std + cargo test --all-features + working-directory: stream-cipher