2929
3030 - name : Build rusts-ffi
3131 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
3336
3437 - name : Upload binaries
3538 uses : actions/upload-artifact@v4
6467 run : |
6568 cargo cinstall --locked --target x86_64-unknown-linux-gnu --features cert_compression --release --prefix dist
6669
70+ - name : Copy in LICENSE files
71+ run : cp LICENSE* dist
72+
6773 - name : Upload binaries
6874 uses : actions/upload-artifact@v4
6975 with :
@@ -127,6 +133,9 @@ jobs:
127133 run : |
128134 install_name_tool -id @rpath/librustls.dylib arm64-dist/lib/librustls.dylib
129135
136+ - name : Copy in LICENSE files (arm64)
137+ run : cp LICENSE* arm64-dist
138+
130139 - name : Upload binaries (arm64)
131140 uses : actions/upload-artifact@v4
132141 with :
@@ -141,6 +150,9 @@ jobs:
141150 run : |
142151 install_name_tool -id @rpath/librustls.dylib x86-dist/lib/librustls.dylib
143152
153+ - name : Copy in LICENSE files (x86_64)
154+ run : cp LICENSE* x86-dist
155+
144156 - name : Upload binaries (x86_64)
145157 uses : actions/upload-artifact@v4
146158 with :
@@ -172,6 +184,12 @@ jobs:
172184 with :
173185 name : ${{ matrix.artifact }}
174186 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
175193 # .pc files aren't relocatable. We need to update the prefix to point to
176194 # the correct location that we extracted the archive. This seems more reliable
177195 # than using `--define-prefix` - it seems to tack an extra 'lib/' subcomponent
@@ -251,6 +269,8 @@ jobs:
251269 name : librustls_0.15.0_amd64.deb
252270 - name : Install deb
253271 run : sudo dpkg --install ./librustls_0.15.0_amd64.deb
272+ - name : Check copyright exists
273+ run : test -f /usr/share/doc/librustls/COPYRIGHT
254274 # Dump out what pkg-config says about the rustls package.
255275 - name : Debug pkg-config
256276 run : |
0 commit comments