summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-09-27 15:32:21 +0200
committersfan5 <sfan5@live.de>2022-11-01 16:30:59 +0100
commit7f5bcd72442b16b22d1f27e2f4a09e9e049db05d (patch)
treeb0d46de9428c71ef5a22d942c58d879f2ad35b42
parentf67a56b830e83b68b67cc5fc8927f541c9b1fcab (diff)
downloadmpv-7f5bcd72442b16b22d1f27e2f4a09e9e049db05d.tar.bz2
mpv-7f5bcd72442b16b22d1f27e2f4a09e9e049db05d.tar.xz
ci: upload resulting binary of mingw64 build
-rw-r--r--.github/workflows/build.yml7
-rwxr-xr-xci/build-mingw64.sh15
2 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index eaeab7f1e6..c8d8b5e6a2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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:
diff --git a/ci/build-mingw64.sh b/ci/build-mingw64.sh
index 5daf6979f4..46e037b62a 100755
--- a/ci/build-mingw64.sh
+++ b/ci/build-mingw64.sh
@@ -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