-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (39 loc) · 1.48 KB
/
ci_mingw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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'