mirror of https://github.com/mpv-player/mpv.git
ci: upload resulting binary of mingw64 build
This commit is contained in:
parent
f67a56b830
commit
7f5bcd7244
|
@ -50,7 +50,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build with waf
|
- name: Build with waf
|
||||||
run: |
|
run: |
|
||||||
./ci/build-mingw64.sh waf
|
./ci/build-mingw64.sh waf pack
|
||||||
env:
|
env:
|
||||||
TARGET: ${{ matrix.target }}
|
TARGET: ${{ matrix.target }}
|
||||||
|
|
||||||
|
@ -59,6 +59,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cat ./build/config.log
|
cat ./build/config.log
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: mpv-${{ matrix.target }}
|
||||||
|
path: mpv-git-*.zip
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -211,3 +211,18 @@ elif [ "$1" = "waf" ]; then
|
||||||
|
|
||||||
./waf build --verbose
|
./waf build --verbose
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Reference in New Issue