File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -36,43 +36,56 @@ jobs:
36
36
os : [windows-2019, windows-2022]
37
37
build_type : [x64-Debug, x64-Release]
38
38
arch : [amd64]
39
+ build_opts : [jpegpng]
39
40
include :
40
41
- os : windows-2019
41
42
build_type : x86-Debug
42
43
arch : amd64_x86
44
+ build_opts : jpegpng
43
45
- os : windows-2019
44
46
build_type : x86-Release
45
47
arch : amd64_x86
48
+ build_opts : jpegpng
46
49
- os : windows-2022
47
50
build_type : x86-Debug
48
51
arch : amd64_x86
52
+ build_opts : jpegpng
49
53
- os : windows-2022
50
54
build_type : x86-Release
51
55
arch : amd64_x86
56
+ build_opts : jpegpng
52
57
- os : windows-2022
53
58
build_type : x64-Debug-Clang
54
59
arch : amd64
60
+ build_opts : jpegpng
55
61
- os : windows-2022
56
62
build_type : x64-Release-Clang
57
63
arch : amd64
64
+ build_opts : jpegpng
58
65
- os : windows-2022
59
66
build_type : x86-Debug-Clang
60
67
arch : amd64_x86
68
+ build_opts : jpegpng
61
69
- os : windows-2022
62
70
build_type : x86-Release-Clang
63
71
arch : amd64_x86
72
+ build_opts : jpegpng
64
73
- os : windows-2022
65
74
build_type : arm64-Debug
66
75
arch : amd64_arm64
76
+ build_opts : jpegpng
67
77
- os : windows-2022
68
78
build_type : arm64-Release
69
79
arch : amd64_arm64
80
+ build_opts : jpegpng
70
81
- os : windows-2022
71
82
build_type : arm64ec-Debug
72
83
arch : amd64_arm64
84
+ build_opts : none
73
85
- os : windows-2022
74
86
build_type : arm64ec-Release
75
87
arch : amd64_arm64
88
+ build_opts : none
76
89
77
90
steps :
78
91
- uses : actions/checkout@v4
@@ -127,9 +140,12 @@ jobs:
127
140
- name : ' Configure CMake'
128
141
working-directory : ${{ github.workspace }}
129
142
run : >
130
- cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_SAMPLE=OFF -DENABLE_LIBJPEG_SUPPORT=ON -DENABLE_LIBPNG_SUPPORT=ON
143
+ cmake --preset=${{ matrix.build_type }} -DBUILD_TESTING=ON -DBUILD_TOOLS=OFF -DBUILD_SAMPLE=OFF $BUILD_OPTION1 $BUILD_OPTION2
131
144
-DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_DIR="${{ github.workspace }}/build"
132
145
-DVCPKG_TARGET_TRIPLET="${env:VCPKG_DEFAULT_TRIPLET}"
146
+ env :
147
+ BUILD_OPTION1 : ${{ matrix.build_opts == 'jpegpng' && '-DENABLE_LIBJPEG_SUPPORT=ON' || '' }}
148
+ BUILD_OPTION2 : ${{ matrix.build_opts == 'jpegpng' && '-DENABLE_LIBPNG_SUPPORT=ON' || '' }}
133
149
134
150
- name : ' Build'
135
151
working-directory : ${{ github.workspace }}
You can’t perform that action at this time.
0 commit comments