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

Replace deprecated workflow functions #1108

Merged
merged 18 commits into from
Feb 13, 2023
Merged

Replace deprecated workflow functions #1108

merged 18 commits into from
Feb 13, 2023

Conversation

eike-hass
Copy link
Collaborator

@eike-hass eike-hass commented Jan 26, 2023

Description of change

Central workflow actions we use setup our rust tooling in CI have been unmaintained for a while. We need to move away from them since some of their dependencies and assumptions have bee deprecated by GitHub and might cease to work in the future.
The two noteworthy deprecations are:

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

Some alternatives (and general dissatisfaction) have been discussed in issues in the actions repositories:

actions-rs/toolchain#221
actions-rs/toolchain#219

Note:
We still need to find a replacement for actions-rs/audit-check which runs cargo-audit in the background, but also handles GitHub specific reporting.

The changes in this PR address the deprecations in our code and replace the actions-rs actions. The toolchain setup is now done through a custom action in all places.

Type of change

Add an x to the boxes that are relevant to your changes.

  • Bug fix (a non-breaking change which fixes an issue)
  • Enhancement (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Fix

How the change has been tested

CI passes, although some workflows will only be triggered during a release, so there is some potential for things breaking still.

Change checklist

Add an x to the boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@eike-hass eike-hass added the No changelog Excludes PR from becoming part of any changelog label Jan 26, 2023
@eike-hass eike-hass changed the title WIP: Update actions/checkout@v3 WIP: Replace deprecated workflow functions Jan 26, 2023
@eike-hass eike-hass changed the title WIP: Replace deprecated workflow functions Replace deprecated workflow functions Feb 3, 2023
.github/actions/release/bump-versions/action.yml Outdated Show resolved Hide resolved
.github/actions/rust/rust-setup/action.yml Outdated Show resolved Hide resolved
.github/workflows/build-and-test.yml Outdated Show resolved Hide resolved
.github/workflows/clippy.yml Outdated Show resolved Hide resolved
.github/workflows/test-docs-build.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@@ -58,4 +58,4 @@ jobs:
dprint check

- name: cargo-license-template check
run: cargo license-template --template .license_template --ignore .license_template_ignore --verbose
run: cargo +nightly license-template --template .license_template --ignore .license_template_ignore --verbose
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably doesn't matter if run with nightly because license-template should be agnostic over the environment, but also shouldn't be a problem.

Copy link
Contributor

@olivereanderson olivereanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@eike-hass eike-hass merged commit 3068959 into main Feb 13, 2023
@eike-hass eike-hass deleted the chore/update-workflows branch February 13, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No changelog Excludes PR from becoming part of any changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants