Skip to content

Commit

Permalink
CI: Tar files for packaging on macOS and Linux
Browse files Browse the repository at this point in the history
This will prevent the permission loss on the executable files.
For more info read: https://github.com/actions/upload-artifact
  • Loading branch information
pierre-dejoue committed Sep 15, 2024
1 parent ce074b5 commit bccff27
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bccff27

Please sign in to comment.