Support default filename with underscores. (#495)

This is the default format used by github action rust-build/rust-build.
This commit is contained in:
Diogo Sousa 2022-10-20 02:44:35 +01:00 committed by GitHub
parent 087d69da6e
commit d90547c818
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -18,11 +18,16 @@ pub const FULL_FILENAMES: &[&str] = &[
"{ name }-{ target }-{ version }{ archive-suffix }",
"{ name }-{ version }-{ target }{ archive-suffix }",
"{ name }-v{ version }-{ target }{ archive-suffix }",
"{ name }_{ target }_v{ version }{ archive-suffix }",
"{ name }_{ target }_{ version }{ archive-suffix }",
"{ name }_{ version }_{ target }{ archive-suffix }",
"{ name }_v{ version }_{ target }{ archive-suffix }",
];
pub const NOVERSION_FILENAMES: &[&str] = &[
"{ name }-{ target }{ archive-suffix }",
"{ name }{ archive-suffix }",
"{ name }_{ target }{ archive-suffix }",
];
impl RepositoryHost {