Commit 19fbebf
authored
ci: derive the rustler precompiled crate from the calling repository (ash-project#2834)
The build-release job hardcoded igniter_js as the crate name and directory, so
every other rustler_precompiled project calling this workflow built the wrong
crate on a v* tag. rust-crate-dir did not help, as it was only read by
rust-check.
build-release now reuses rust-crate-dir for the crate directory, falling back to
native/<repository name>, and takes the crate name from the repository name.
igniter_js resolves to igniter_js and native/igniter_js exactly as before, and
any other project works without configuration.
rust-project-name is available for a repository whose crate name differs from
its own.1 parent 789fb61 commit 19fbebf
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
982 | 990 | | |
983 | 991 | | |
984 | 992 | | |
985 | | - | |
| 993 | + | |
986 | 994 | | |
987 | 995 | | |
988 | 996 | | |
989 | 997 | | |
990 | | - | |
| 998 | + | |
991 | 999 | | |
992 | 1000 | | |
993 | 1001 | | |
994 | 1002 | | |
995 | 1003 | | |
996 | | - | |
| 1004 | + | |
997 | 1005 | | |
998 | 1006 | | |
999 | 1007 | | |
| |||
0 commit comments