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 24, 2020
1 parent aa7dbea commit 0285ff8
Show file tree
Hide file tree
Showing 23 changed files with 810 additions and 108 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/elliptic-curve-crate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: elliptic-curve crate

on:
pull_request:
paths:
- "elliptic-curve-crate/**"
- "Cargo.*"
push:
branches: master
paths:
- "elliptic-curve-crate/**"
- "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: elliptic-curve-crate
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: elliptic-curve-crate
55 changes: 55 additions & 0 deletions .github/workflows/k256.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: k256

on:
pull_request:
paths:
- "elliptic-curve-crate/**"
- "k256/**"
- "Cargo.*"
push:
branches: master
paths:
- "elliptic-curve-crate/**"
- "k256/**"
- "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: k256
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: k256
55 changes: 55 additions & 0 deletions .github/workflows/p256.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: p256

on:
pull_request:
paths:
- "elliptic-curve-crate/**"
- "p256/**"
- "Cargo.*"
push:
branches: master
paths:
- "elliptic-curve-crate/**"
- "p256/**"
- "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: p256
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: p256
55 changes: 55 additions & 0 deletions .github/workflows/p384.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: p384

on:
pull_request:
paths:
- "elliptic-curve-crate/**"
- "p384/**"
- "Cargo.*"
push:
branches: master
paths:
- "elliptic-curve-crate/**"
- "p384/**"
- "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: p384
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: p384
55 changes: 55 additions & 0 deletions .github/workflows/p521.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: p521

on:
pull_request:
paths:
- "elliptic-curve-crate/**"
- "p521/**"
- "Cargo.*"
push:
branches: master
paths:
- "elliptic-curve-crate/**"
- "p521/**"
- "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: p521
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: p521
24 changes: 24 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Security Audit
on:
pull_request:
paths: Cargo.lock
push:
branches: develop
paths: Cargo.lock
schedule:
- cron: '0 0 * * *'

jobs:
security_audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache cargo bin
uses: actions/cache@v1
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-audit-v0.12.0
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Workspace

on:
pull_request:
paths-ignore:
- README.md
push:
branches: master
paths-ignore:
- README.md

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.41.0
components: clippy
- run: cargo clippy --all --all-features -- -D warnings
rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Cargo.lock
target
*.sw*
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 0285ff8

Please sign in to comment.