Skip to content

Commit 02257b7

Browse files
committed
add bunch of licenses
1 parent fef3248 commit 02257b7

File tree

6 files changed

+68
-6
lines changed

6 files changed

+68
-6
lines changed

.github/workflows/build.yml

-6
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ jobs:
9292
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
9393
run: |
9494
cp LICENSE ./build/bin/
95-
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
9695
zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip ./build/bin/*
9796
9897
- name: Upload artifacts
@@ -162,7 +161,6 @@ jobs:
162161
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
163162
run: |
164163
cp LICENSE ./build/bin/
165-
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
166164
zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip ./build/bin/*
167165
168166
- name: Upload artifacts
@@ -245,7 +243,6 @@ jobs:
245243
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
246244
run: |
247245
cp LICENSE ./build/bin/
248-
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
249246
zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-${{ matrix.build }}.zip ./build/bin/*
250247
251248
- name: Upload artifacts
@@ -430,7 +427,6 @@ jobs:
430427
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
431428
run: |
432429
cp LICENSE ./build/bin/
433-
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
434430
zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.zip ./build/bin/*
435431
436432
- name: Upload artifacts
@@ -975,8 +971,6 @@ jobs:
975971
env:
976972
CURL_PATH: ${{ steps.get_libcurl.outputs.curl_path }}
977973
run: |
978-
Copy-Item LICENSE .\build\bin\Release\llama.cpp.txt
979-
Copy-Item .\examples\run\linenoise.cpp\LICENSE .\build\bin\Release\linenoise.cpp.txt
980974
Copy-Item $env:CURL_PATH\bin\libcurl-x64.dll .\build\bin\Release\libcurl-x64.dll
981975
7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\*
982976

CMakeLists.txt

+17
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,20 @@ configure_file(cmake/llama.pc.in
247247

248248
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
249249
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
250+
251+
#
252+
# copy the license files
253+
#
254+
255+
# Check if running in GitHub Actions
256+
if(DEFINED ENV{GITHUB_ACTIONS} AND "$ENV{GITHUB_ACTIONS}" STREQUAL "true")
257+
message(STATUS "Running inside GitHub Actions - copying license files")
258+
259+
# Copy all files from licenses/ to build/bin/
260+
file(GLOB LICENSE_FILES "${CMAKE_SOURCE_DIR}/licenses/*")
261+
foreach(LICENSE_FILE ${LICENSE_FILES})
262+
get_filename_component(FILENAME ${LICENSE_FILE} NAME)
263+
configure_file(${LICENSE_FILE} "${CMAKE_BINARY_DIR}/bin/${FILENAME}" COPYONLY)
264+
endforeach()
265+
endif()
266+

licenses/LICENSE-curl

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Copyright (c) 1996 - 2025, Daniel Stenberg, [email protected], and many contributors, see the THANKS file.
2+
3+
All rights reserved.
4+
5+
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8+
9+
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.

licenses/LICENSE-httplib

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 yhirose
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

licenses/LICENSE-jsonhpp

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2013-2025 Niels Lohmann
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
File renamed without changes.

0 commit comments

Comments
 (0)