This commit is contained in:
João Marcos 2025-04-06 19:20:58 -03:00
parent eb18e9efa7
commit fb02f1b0b5
2 changed files with 6 additions and 6 deletions

View File

@ -105,7 +105,7 @@ jobs:
if [[ "${{ matrix.feature-use-zlib }}" == true ]]; then FEATURES+=(use_zlib); fi
if [[ "${{ matrix.feature-use-zstd-thin }}" == true ]]; then FEATURES+=(use_zstd_thin); fi
if [[ "${{ matrix.feature-unrar }}" == true ]]; then FEATURES+=(unrar); fi
IFS=','
IFS='+'
echo "FEATURES=${FEATURES[*]}" >> $GITHUB_OUTPUT
- name: Set up extra cargo flags
@ -145,7 +145,7 @@ jobs:
(matrix.feature-unrar && matrix.feature-use-zlib && matrix.feature-use-zstd-thin)) }}
uses: actions/upload-artifact@v4
with:
name: ouch-${{ matrix.target }}-${{ steps.concat-features.outputs.FEATURES }}
name: ouch-${{ matrix.target }}${{ steps.concat-features.outputs.FEATURES != '' && format('-{0}', steps.concat-features.outputs.FEATURES) || '' }}
path: |
target/${{ matrix.target }}/release/ouch
target/${{ matrix.target }}/release/ouch.exe

8
scripts/package-release-assets.sh Normal file → Executable file
View File

@ -6,12 +6,12 @@ mkdir release
cd downloaded_artifacts
for dir in ouch-*; do
cp -r "$dir/artifacts" "$dir/completions"
mkdir "$dir/man"
mv "$dir"/completions/*.1 "$dir/man"
mv "$dir"/artifacts/*.1 "$dir/man"
cp ../{README.md,LICENSE,CHANGELOG.md} "$fulldir"
rm -r "$fulldir/artifacts"
mv "$dir/artifacts" "$dir/completions"
cp ../{README.md,LICENSE,CHANGELOG.md} "$dir"
if [[ "$dir" = *.exe ]]; then
target=${dir%.exe}