ci: upload resulting binary of mingw64 build

This commit is contained in:
sfan5 2022-09-27 15:32:21 +02:00
parent f67a56b830
commit 7f5bcd7244
2 changed files with 21 additions and 1 deletions

View File

@ -50,7 +50,7 @@ jobs:
- name: Build with waf
run: |
./ci/build-mingw64.sh waf
./ci/build-mingw64.sh waf pack
env:
TARGET: ${{ matrix.target }}
@ -59,6 +59,11 @@ jobs:
run: |
cat ./build/config.log
- uses: actions/upload-artifact@v3
with:
name: mpv-${{ matrix.target }}
path: mpv-git-*.zip
macos:
runs-on: ${{ matrix.os }}
strategy:

View File

@ -211,3 +211,18 @@ elif [ "$1" = "waf" ]; then
./waf build --verbose
fi
if [ "$2" = pack ]; then
mkdir -p artifact
echo "Copying:"
cp -pv build/mpv.{com,exe} "$prefix_dir/bin/"*.dll artifact/
# ship everything and the kitchen sink
shopt -s nullglob
for file in /usr/lib/gcc/$TARGET/*-posix/*.dll /usr/$TARGET/lib/*.dll; do
cp -pv "$file" artifact/
done
echo "Archiving:"
pushd artifact
zip -9r "../mpv-git-$(date +%F)-$(git rev-parse --short HEAD)-${TARGET%%-*}.zip" -- *
popd
fi