-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.sh
38 lines (31 loc) · 886 Bytes
/
test.sh
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
#!/bin/bash
set -e
cd meson
meson setup _build --werror
meson compile -C _build
meson test -C _build
cd ..
if [[ "$MSYSTEM" == "MSYS" ]]; then
cd meson
meson setup --cross-file aarch64-w64-mingw32.txt _build_cross_arm64 --werror
meson compile -C _build_cross_arm64
# meson test -C _build_cross_arm64
cd ..
cd meson
meson setup --cross-file i686-w64-mingw32.txt _build_cross_32 --werror
meson compile -C _build_cross_32
meson test -C _build_cross_32
cd ..
cd meson
meson setup --cross-file x86_64-w64-mingw32.txt _build_cross_64 --werror
meson compile -C _build_cross_64
meson test -C _build_cross_64
cd ..
cd meson
meson setup --cross-file x86_64-w64-mingw32ucrt.txt _build_cross_64_ucrt --werror
meson compile -C _build_cross_64_ucrt
meson test -C _build_cross_64_ucrt
cd ..
fi
cd custom
./test.sh