From 579e5cca973f3173b6630a674231e293c87902f9 Mon Sep 17 00:00:00 2001 From: Pierre Dejoue Date: Sun, 15 Sep 2024 21:36:29 +0200 Subject: [PATCH] CI: Tar files for packaging on macOS and Linux This will prevent the permission loss on the executable files. For more info read: https://github.com/actions/upload-artifact --- .github/workflows/packaging.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 4507582..79e4b5d 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -49,9 +49,14 @@ jobs: working-directory: ${{ github.workspace }}/build run: cmake --install . --config ${{ matrix.build_type }} --prefix install + - if: matrix.os != 'windows' + name: Tar files + working-directory: ${{ github.workspace }}/build + run: tar -cvf package.tar -C install . + - name: Upload uses: actions/upload-artifact@v4 with: name: package-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.build_type }} - path: ${{ github.workspace }}/build/install + path: ${{ github.workspace }}/build/${{ matrix.os == 'windows' && 'install' || 'package.tar' }} retention-days: 6