-
Notifications
You must be signed in to change notification settings - Fork 269
79 lines (67 loc) · 1.85 KB
/
ci_windows_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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI Windows Mingw
on:
push:
branches: [master, GD-*]
pull_request:
branches: [master, GD-*]
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RELWITHDEBINFO
jobs:
win-build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: '⬛', sys: MINGW32 }
- { icon: '🟦', sys: MINGW64 }
- { icon: '🟨', sys: UCRT64 } # Experimental!
- { icon: '🟧', sys: CLANG64 } # Experimental!
name: 🚧${{ matrix.icon }}-${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- name: '⚙️ git config'
run: git config --global core.autocrlf input
shell: bash
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: >
git
base-devel
tree
pacboy: >
toolchain:p
libpng:p
libjpeg-turbo:p
freetype:p
libtiff:p
libwebp:p
libheif:p
libraqm:p
libavif:p
xpm-nox:p
cmake:p
ninja:p
- name: '🚧 Cmake Configure'
run: |
cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_PNG=1 -DENABLE_FREETYPE=1 -DENABLE_XPM=1 -DENABLE_JPEG=1 -DENABLE_WEBP=1 -DENABLE_TIFF=1 -DENABLE_GD_FORMATS=1 -DENABLE_HEIF=1 -DENABLE_RAQM=1 -DENABLE_ICONV=1 -DENABLE_CPP=1 -DBUILD_TEST=1 -B.
- name: Build
run: cmake --build .
- name: Run tests
working-directory: ${{github.workspace}}
run: |
mkdir tmp
export TMP="$PWD/tmp"
export CTEST_OUTPUT_ON_FAILURE=1
ctest