Skip to content

Commit 0285ff8

Browse files
committed
Switch to GitHub Actions; MSRV 1.41+
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>
1 parent aa7dbea commit 0285ff8

23 files changed

+810
-108
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: elliptic-curve crate
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "elliptic-curve-crate/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
paths:
11+
- "elliptic-curve-crate/**"
12+
- "Cargo.*"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- 1.41.0 # MSRV
21+
- stable
22+
target:
23+
- thumbv7em-none-eabi
24+
- wasm32-unknown-unknown
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
target: ${{ matrix.target }}
32+
override: true
33+
- working-directory: elliptic-curve-crate
34+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
rust:
40+
- 1.41.0 # MSRV
41+
- stable
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
- run: |
49+
cargo check --all-features
50+
cargo test --no-default-features
51+
cargo test
52+
cargo test --all-features
53+
working-directory: elliptic-curve-crate

.github/workflows/k256.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: k256
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "elliptic-curve-crate/**"
7+
- "k256/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
paths:
12+
- "elliptic-curve-crate/**"
13+
- "k256/**"
14+
- "Cargo.*"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
rust:
22+
- 1.41.0 # MSRV
23+
- stable
24+
target:
25+
- thumbv7em-none-eabi
26+
- wasm32-unknown-unknown
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: ${{ matrix.rust }}
33+
target: ${{ matrix.target }}
34+
override: true
35+
- working-directory: k256
36+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
37+
test:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
rust:
42+
- 1.41.0 # MSRV
43+
- stable
44+
steps:
45+
- uses: actions/checkout@v1
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: ${{ matrix.rust }}
50+
- run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+
working-directory: k256

.github/workflows/p256.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: p256
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "elliptic-curve-crate/**"
7+
- "p256/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
paths:
12+
- "elliptic-curve-crate/**"
13+
- "p256/**"
14+
- "Cargo.*"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
rust:
22+
- 1.41.0 # MSRV
23+
- stable
24+
target:
25+
- thumbv7em-none-eabi
26+
- wasm32-unknown-unknown
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: ${{ matrix.rust }}
33+
target: ${{ matrix.target }}
34+
override: true
35+
- working-directory: p256
36+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
37+
test:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
rust:
42+
- 1.41.0 # MSRV
43+
- stable
44+
steps:
45+
- uses: actions/checkout@v1
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: ${{ matrix.rust }}
50+
- run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+
working-directory: p256

.github/workflows/p384.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: p384
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "elliptic-curve-crate/**"
7+
- "p384/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
paths:
12+
- "elliptic-curve-crate/**"
13+
- "p384/**"
14+
- "Cargo.*"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
rust:
22+
- 1.41.0 # MSRV
23+
- stable
24+
target:
25+
- thumbv7em-none-eabi
26+
- wasm32-unknown-unknown
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: ${{ matrix.rust }}
33+
target: ${{ matrix.target }}
34+
override: true
35+
- working-directory: p384
36+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
37+
test:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
rust:
42+
- 1.41.0 # MSRV
43+
- stable
44+
steps:
45+
- uses: actions/checkout@v1
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: ${{ matrix.rust }}
50+
- run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+
working-directory: p384

.github/workflows/p521.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: p521
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "elliptic-curve-crate/**"
7+
- "p521/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
paths:
12+
- "elliptic-curve-crate/**"
13+
- "p521/**"
14+
- "Cargo.*"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
rust:
22+
- 1.41.0 # MSRV
23+
- stable
24+
target:
25+
- thumbv7em-none-eabi
26+
- wasm32-unknown-unknown
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
profile: minimal
32+
toolchain: ${{ matrix.rust }}
33+
target: ${{ matrix.target }}
34+
override: true
35+
- working-directory: p521
36+
run: cargo build --no-default-features --release --target ${{ matrix.target }}
37+
test:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
rust:
42+
- 1.41.0 # MSRV
43+
- stable
44+
steps:
45+
- uses: actions/checkout@v1
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: ${{ matrix.rust }}
50+
- run: |
51+
cargo check --all-features
52+
cargo test --no-default-features
53+
cargo test
54+
cargo test --all-features
55+
working-directory: p521

.github/workflows/security-audit.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Security Audit
2+
on:
3+
pull_request:
4+
paths: Cargo.lock
5+
push:
6+
branches: develop
7+
paths: Cargo.lock
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
security_audit:
13+
name: Security Audit
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Cache cargo bin
18+
uses: actions/cache@v1
19+
with:
20+
path: ~/.cargo/bin
21+
key: ${{ runner.os }}-cargo-audit-v0.12.0
22+
- uses: actions-rs/audit-check@v1
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/workspace.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Workspace
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- README.md
7+
push:
8+
branches: master
9+
paths-ignore:
10+
- README.md
11+
12+
jobs:
13+
clippy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
profile: minimal
20+
toolchain: 1.41.0
21+
components: clippy
22+
- run: cargo clippy --all --all-features -- -D warnings
23+
rustfmt:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout sources
27+
uses: actions/checkout@v1
28+
29+
- name: Install stable toolchain
30+
uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: stable
34+
components: rustfmt
35+
36+
- name: Run cargo fmt
37+
uses: actions-rs/cargo@v1
38+
with:
39+
command: fmt
40+
args: --all -- --check

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Cargo.lock
21
target
32
*.sw*

.travis.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)