rustls / rustls-ffi

Use Rustls from any language
Other
124 stars 31 forks source link

ci: resolve deprecation warnings, add dependabot #328

Closed cpu closed 1 year ago

cpu commented 1 year ago

Description

This branch brings over some CI changes that were applied to other Rustls repos previously (e.g. https://github.com/rustls/rustls/pull/1214, https://github.com/rustls/webpki/pull/33).

Most importantly it fixes warnings of the form:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions-rs/toolchain@v1. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

and

The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

ci: actions/checkout v2 -> v3.

Simple version bump.

ci: actions-rs/toolchain -> dtolnay/rust-toolchain.

The actions-rs/toolchain workflow action is abandoned and its use generates deprecation warnings from GitHub actions.

In the other Rustls ecosystems projects we've switched to the maintained dtolnay/rust-toolchain action as an alternative.

This commit makes that change for the rustls-ffi actions. One additional change is required to tests/verify-static-libraries.py to tell cargo to always skip using color when we're building with the intent to regex match output.

github: add dependabot config.

This commit brings the same dependabot.yml config we use for the main rustls repo over to rustls-ffi.