Skip to content

Commit

Permalink
CI/CD: Add a package job.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Apr 10, 2021
1 parent 0b7cbf2 commit 6c334a2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,23 @@ jobs:
- run: |
cargo doc --all-features
package:
# Don't run duplicate `push` jobs for the repo owner's PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

runs-on: ubuntu-18.04

steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- uses: actions/checkout@v2

- run: cargo package


test:
# Don't run duplicate `push` jobs for the repo owner's PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
Expand Down
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ include = [
"src/calendar.rs",
"src/cert.rs",
"src/der.rs",
"src/name.rs",
"src/end_entity.rs",
"src/error.rs",
"src/name.rs",
"src/name/dns_name.rs",
"src/name/ip_address.rs",
"src/name/verify.rs",
"src/signed_data.rs",
"src/time.rs",
"src/trust_anchor_util.rs",
"src/trust_anchor.rs",
"src/verify_cert.rs",
"src/webpki.rs",
"src/lib.rs",

"src/data/**/*",

Expand Down

0 comments on commit 6c334a2

Please sign in to comment.