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

Do not download cargo in CI #2173

Merged
merged 4 commits into from
May 23, 2024
Merged

Do not download cargo in CI #2173

merged 4 commits into from
May 23, 2024

Conversation

vrabaud
Copy link
Collaborator

@vrabaud vrabaud commented May 23, 2024

- switch deprecated actions-rs/toolchain, cf
actions-rs/toolchain#216
- do not download cargo: it does not always work (e.g. macOS
has several architectures but there is only one download), it is
complex code, and we have a proper way to install it through
CMake cf
https://github.com/AOMediaCodec/libavif/blob/c21943e1e07ced29a22d1a59b0c4748e00b84c67/cmake/Modules/LocalRav1e.cmake#L49
@vrabaud vrabaud requested a review from y-guyon May 23, 2024 14:52
toolchain: stable
override: true
- name: Set up rust
uses: dtolnay/rust-toolchain@stable
Copy link
Collaborator

Choose a reason for hiding this comment

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

uses: dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe take the last commit from the stable branch so dtolnay/rust-toolchain@d388a48

Copy link
Collaborator Author

@vrabaud vrabaud May 23, 2024

Choose a reason for hiding this comment

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

Usually people tag. stable is a branch. But yes, it is safer. Done

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is not possible to stick to a commit. Reverting the rust dependency. What really matters in this PR is the cargo install.

@vrabaud vrabaud marked this pull request as ready for review May 23, 2024 15:32
@vrabaud vrabaud merged commit 3af708a into AOMediaCodec:main May 23, 2024
21 checks passed
@vrabaud vrabaud deleted the fix_3 branch May 23, 2024 15:34
@vrabaud vrabaud changed the title Rust fixes Do not download cargo in CI May 23, 2024
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.

None yet

2 participants