Commit cc19f31
authored
CI: Only run semver checks on crates with a lib target (#403)
#### Problem
The semver-checks step during publish doesn't distinguish the current
crate targets, and semver-checks only works on crates with lib targets.
This means it fails on proc-macro crates, preventing us from publishing.
#### Summary of changes
Similar to what's done in the program repos at [this
workflow](https://github.com/solana-program/actions/blob/3823505ada06f9c8362cd935b73a7f22a1490374/.github/workflows/publish-rust.yml#L103),
check for a lib target and then run semver-checks.1 parent 6f14a71 commit cc19f31
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
155 | 167 | | |
156 | 168 | | |
| 169 | + | |
157 | 170 | | |
158 | 171 | | |
159 | 172 | | |
160 | 173 | | |
161 | 174 | | |
| 175 | + | |
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
| |||
168 | 182 | | |
169 | 183 | | |
170 | 184 | | |
| 185 | + | |
171 | 186 | | |
172 | 187 | | |
173 | 188 | | |
| |||
0 commit comments