Skip to content

Build misc improvements #1308

Build misc improvements

Build misc improvements #1308

Workflow file for this run

# Warning: this name must stay in sync with the badges referenced in the README
name: 'tests MinGW'
on:
push:
branches:
- 'main'
pull_request:
jobs:
mingw:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64 # Start a 64 bit Mingw environment
update: true
- name: Install dependencies
run: |
pacman -S --noconfirm --needed git make mingw-w64-x86_64-{toolchain,ffmpeg,python,python3-pillow,meson,glslang}
# Install vulkan-devel packages explicitely to workaround a conflict between vulkan-utility-libraries and vulkan-validation-layers
pacman -S --noconfirm --needed mingw-w64-x86_64-{spirv-headers,spirv-tools,vulkan-headers,vulkan-loader,vulkan-validation-layers}
# Prevents random "SSL: CERTIFICATE_VERIFY_FAILED" error with urllib HTTPS calls
pacman -S --noconfirm --needed mingw-w64-x86_64-ca-certificates
- name: Build
run: |
./configure.py
make
- name: Python import and dylib runtime test
run: |
. venv/bin/ngli-activate
echo "Shared libraries required by the nopegl library:"
ldd venv/bin/libnopegl-0.dll
echo "Shared libraries required by ngl-python:"
ldd venv/bin/ngl-python.exe
ngl-python -h
python -c 'import pynopegl, pynopegl_utils'