Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using deprecated or unmaintained CI dependencies #56

Merged
merged 6 commits into from
Aug 26, 2022

Conversation

LingMan
Copy link

@LingMan LingMan commented Aug 26, 2022

The two big items here are:

  • macos-10.15 is deprecated by GitHub actions and will be removed by 2022-08-30, which is in 4 days. Switch all runner images to their -latest version, so this won't be a concern again in the foreseeable future.
  • The actions-rs organization is unmaintained with the sole member being unresponsive for close to two years. Switch to dtolnay/rust-toolchain.

Best reviewed commit-by-commit.

The update of actions/checkout to v3 has been intentionally left out here. Instead of doing a one-time bump, I'll submit a separate PR adding a dependabot config to keep watch over that going forward.

The `macos-10.15` image is deprecated and will be removed by 2022-08-30 [1]. It would be possible
to pin CI to `macos-11` or `macos-12`, but relying on `-latest` is unlikely to cause problems and
avoids having to update the workflow for this again.
While at it, also switch to `windows-latest` and `ubuntu-latest`.

Note that `-latest` are the latest stable images that GitHub provides, and might not be the most
recent version of the operating system available from the operating system vendor.

As of this writing this effectively updates:
macos-10.15 -> macos-11
windows-2019 -> windows-2022
(ubuntu remains unchanged at 20.04)

[1] https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/
The actions-rs organization is unmaintained with the sole member being unresponsive for close to
two years. Use `dtolnay/rust-toolchain` instead of `actions-rs/toolchain`.
Currently this jobs relies on whatever is provided by the underlying image, which may or may not
be latest stable Rust.
This is mostly done for consistency with the other jobs. However, it does have the advantage of
disabling incremental compilation, which should slightly speed up compilation since CI only does
full builds.
Currently this job relies on whatever is provided by the underlying image, which may or may not
have these components installed and up-to-date.
@LingMan LingMan mentioned this pull request Aug 26, 2022
@RazrFalcon
Copy link
Owner

Since when actions-rs/toolchain is deprecated?

@LingMan
Copy link
Author

LingMan commented Aug 26, 2022

As mentioned in the description, it's unmaintained for almost two years at this point. See actions-rs/toolchain#216 for some discussion.

@RazrFalcon
Copy link
Owner

Ok, seems reasonable.

@RazrFalcon RazrFalcon merged commit f95c35c into RazrFalcon:master Aug 26, 2022
@LingMan LingMan deleted the ci branch August 26, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants