mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
Fix zip-in-zip artifact upload for Windows
This commit is contained in:
parent
54a36c4950
commit
fa1e3ea3e1
1 changed files with 4 additions and 4 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -230,7 +230,7 @@ jobs:
|
||||||
else
|
else
|
||||||
package_name="${package_name}-MSVC"
|
package_name="${package_name}-MSVC"
|
||||||
fi
|
fi
|
||||||
package_ext=".zip"
|
package_ext="" # Directory, uploading will automatically zip it
|
||||||
elif [ '${{ runner.os }}' == 'macOS' ]; then
|
elif [ '${{ runner.os }}' == 'macOS' ]; then
|
||||||
package_name="${package_name}-macOS"
|
package_name="${package_name}-macOS"
|
||||||
package_ext=".dmg"
|
package_ext=".dmg"
|
||||||
|
@ -293,17 +293,17 @@ jobs:
|
||||||
binPath="${binPath}/${{ env.BUILD_TYPE }}"
|
binPath="${binPath}/${{ env.BUILD_TYPE }}"
|
||||||
fi
|
fi
|
||||||
if [ '${{ matrix.config.compiler }}' == 'mingw' ] && [ '${{ env.BUILD_TYPE }}' == 'Release' ]; then
|
if [ '${{ matrix.config.compiler }}' == 'mingw' ] && [ '${{ env.BUILD_TYPE }}' == 'Release' ]; then
|
||||||
|
# FIXME arch-specific strip prefix
|
||||||
i686-w64-mingw32-strip -s "${binPath}/furnace.exe"
|
i686-w64-mingw32-strip -s "${binPath}/furnace.exe"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir target
|
mkdir ${{ steps.package-identify.outputs.filename }}
|
||||||
pushd target
|
pushd ${{ steps.package-identify.outputs.filename }}
|
||||||
|
|
||||||
cp -v ../LICENSE LICENSE.txt
|
cp -v ../LICENSE LICENSE.txt
|
||||||
cp -v ../README.md README.txt
|
cp -v ../README.md README.txt
|
||||||
cp -vr ../{papers,demos} ../${binPath}/furnace.exe ./
|
cp -vr ../{papers,demos} ../${binPath}/furnace.exe ./
|
||||||
|
|
||||||
7z a -tzip ../${{ steps.package-identify.outputs.filename }} *
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Package [macOS]
|
- name: Package [macOS]
|
||||||
|
|
Loading…
Reference in a new issue