-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
23 changed files
with
810 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Cargo.lock | ||
target | ||
*.sw* |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.