Skip to content

Commit

Permalink
Merge pull request #26 from RustCrypto/github-actions
Browse files Browse the repository at this point in the history
Switch to GitHub Actions; MSRV 1.41+
  • Loading branch information
tarcieri authored May 30, 2020
2 parents c626f80 + ef9d527 commit a4f78e9
Show file tree
Hide file tree
Showing 11 changed files with 434 additions and 50 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/cmac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: cmac

on:
pull_request:
paths:
- "cmac/**"
- "Cargo.*"
push:
branches: master
paths:
- "cmac/**"
- "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 }}
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
working-directory: cmac
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 --release
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
working-directory: cmac
53 changes: 53 additions & 0 deletions .github/workflows/daa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: daa

on:
pull_request:
paths:
- "daa/**"
- "Cargo.*"
push:
branches: master
paths:
- "daa/**"
- "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: daa
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 --release
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
working-directory: daa
53 changes: 53 additions & 0 deletions .github/workflows/hmac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: hmac

on:
pull_request:
paths:
- "hmac/**"
- "Cargo.*"
push:
branches: master
paths:
- "hmac/**"
- "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: hmac
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 --release
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
working-directory: hmac
53 changes: 53 additions & 0 deletions .github/workflows/pmac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: pmac

on:
pull_request:
paths:
- "pmac/**"
- "Cargo.*"
push:
branches: master
paths:
- "pmac/**"
- "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: pmac
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 --release
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
working-directory: pmac
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
target/
*/target/
*/*/target/
Cargo.lock
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit a4f78e9

Please sign in to comment.