29
29
30
30
- name : Build rusts-ffi
31
31
run : |
32
- cargo cinstall --locked --target x86_64-pc-windows-msvc --features cert_compression --release --prefix dist
32
+ cargo cinstall --locked --target x86_64-pc-windows-msvc --features cert_compression --release --prefix dist
33
+
34
+ - name : Copy in LICENSE files
35
+ run : cp LICENSE* dist
33
36
34
37
- name : Upload binaries
35
38
uses : actions/upload-artifact@v4
64
67
run : |
65
68
cargo cinstall --locked --target x86_64-unknown-linux-gnu --features cert_compression --release --prefix dist
66
69
70
+ - name : Copy in LICENSE files
71
+ run : cp LICENSE* dist
72
+
67
73
- name : Upload binaries
68
74
uses : actions/upload-artifact@v4
69
75
with :
@@ -127,6 +133,9 @@ jobs:
127
133
run : |
128
134
install_name_tool -id @rpath/librustls.dylib arm64-dist/lib/librustls.dylib
129
135
136
+ - name : Copy in LICENSE files (arm64)
137
+ run : cp LICENSE* arm64-dist
138
+
130
139
- name : Upload binaries (arm64)
131
140
uses : actions/upload-artifact@v4
132
141
with :
@@ -141,6 +150,9 @@ jobs:
141
150
run : |
142
151
install_name_tool -id @rpath/librustls.dylib x86-dist/lib/librustls.dylib
143
152
153
+ - name : Copy in LICENSE files (x86_64)
154
+ run : cp LICENSE* x86-dist
155
+
144
156
- name : Upload binaries (x86_64)
145
157
uses : actions/upload-artifact@v4
146
158
with :
@@ -172,6 +184,12 @@ jobs:
172
184
with :
173
185
name : ${{ matrix.artifact }}
174
186
path : ${{ matrix.artifact }}
187
+ - name : Verify license files are present
188
+ run : |
189
+ test -f ${{ matrix.artifact }}/LICENSE
190
+ test -f ${{ matrix.artifact }}/LICENSE-APACHE
191
+ test -f ${{ matrix.artifact }}/LICENSE-ISC
192
+ test -f ${{ matrix.artifact }}/LICENSE-MIT
175
193
# .pc files aren't relocatable. We need to update the prefix to point to
176
194
# the correct location that we extracted the archive. This seems more reliable
177
195
# than using `--define-prefix` - it seems to tack an extra 'lib/' subcomponent
@@ -251,6 +269,8 @@ jobs:
251
269
name : librustls_0.15.0_amd64.deb
252
270
- name : Install deb
253
271
run : sudo dpkg --install ./librustls_0.15.0_amd64.deb
272
+ - name : Check copyright exists
273
+ run : test -f /usr/share/doc/librustls/COPYRIGHT
254
274
# Dump out what pkg-config says about the rustls package.
255
275
- name : Debug pkg-config
256
276
run : |
0 commit comments