From c3bbecb0da8538bb09ad89a38ec26dc5e8fcbb44 Mon Sep 17 00:00:00 2001 From: rapperskull Date: Fri, 1 Mar 2024 00:29:13 +0100 Subject: [PATCH] Include the licenses of our dependencies in the Windows release --- .github/workflows/CI.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index de11ee0..c63ec4d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -53,10 +53,19 @@ jobs: - name: Build working-directory: build run: cmake --build . --config ${{ matrix.configuration }} -j $env:NUMBER_OF_PROCESSORS + - name: Copy licenses + run: | + mkdir LICENSES + for dep in deps/*/ + do + dep_name=$(basename ${dep}) + mkdir LICENSES/${dep_name} + cp deps/${dep_name}/LICENSE* LICENSES/${dep_name}/ + done - name: Prepare artifacts run: | mkdir artifacts - mv -vb build\${{ matrix.configuration }}\extract-xiso.exe, LICENSE.TXT artifacts + mv -vb build\${{ matrix.configuration }}\extract-xiso.exe LICENSE.TXT LICENSES artifacts - uses: actions/upload-artifact@v4 with: name: extract-xiso-${{ matrix.artifact_os }}-${{ matrix.configuration }}