ci/mingw: check if binary is runnable before packaging

This commit is contained in:
Kacper Michajłow 2023-07-23 12:34:06 +02:00 committed by sfan5
parent 4ac5e6c810
commit d521ba38d1
2 changed files with 3 additions and 1 deletions

View File

@ -20,8 +20,9 @@ jobs:
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y autoconf automake pkg-config g++-mingw-w64 gcc-multilib python3-pip ninja-build nasm
sudo apt-get install -y autoconf automake pkg-config g++-mingw-w64 gcc-multilib python3-pip ninja-build nasm wine wine32 wine64
sudo python3 -m pip install meson
- name: Build libraries

View File

@ -216,6 +216,7 @@ if [ "$2" = pack ]; then
done
echo "Archiving:"
pushd artifact
wine64 ./mpv.com -v --no-config
zip -9r "../mpv-git-$(date +%F)-$(git rev-parse --short HEAD)-${TARGET%%-*}.zip" -- *
popd
fi