Skip to content

Commit a387624

Browse files
committed
cmake: use RelWithDebInfo instead of Release
1 parent 09e003f commit a387624

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/cmake-win64.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,23 @@ jobs:
1717
runs-on: windows-latest
1818
steps:
1919
- uses: ilammy/setup-nasm@v1
20+
- uses: microsoft/setup-msbuild@v2
2021
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
2122
uses: actions/checkout@v4
2223
with:
2324
submodules: recursive
2425
- run: git fetch --prune --unshallow --tags
26+
2527
- name: Get the version
2628
id: get_version
2729
run: |
2830
$git_info=$(git describe --tags HEAD)
2931
echo "version=${git_info}" >> $env:GITHUB_OUTPUT
32+
3033
- name: Setup Installation Location
3134
run: |
3235
mkdir ${{env.ILOC}}
36+
3337
- name: Uninstall Perl
3438
run: |
3539
choco uninstall strawberryperl
@@ -40,7 +44,7 @@ jobs:
4044
git clone --depth 1 https://github.com/zlib-ng/zlib-ng.git
4145
cd zlib-ng
4246
cmake -Bbuild -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DBUILD_SHARED_LIBS=OFF -DZLIB_COMPAT=ON -DZLIB_ENABLE_TESTS=OFF -DINSTALL_UTILS=OFF
43-
cmake --build build --config Release --target install
47+
cmake --build build --config RelWithDebInfo --target install
4448
cd ..
4549
4650
- name: Build and Install libpng
@@ -58,8 +62,8 @@ jobs:
5862
run: |
5963
git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo.git
6064
cd libjpeg-turbo
61-
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DWITH_TURBOJPEG=OFF -DENABLE_SHARED=OFF
62-
cmake --build build --config Release --target install
65+
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DWITH_TURBOJPEG=OFF -DENABLE_SHARED=OFF
66+
cmake --build build --config RelWithDebInfo --target install
6367
cd ..
6468
6569
- name: Build and Install jbigkit
@@ -68,16 +72,16 @@ jobs:
6872
git clone --depth 1 https://github.com/zdenop/jbigkit.git
6973
cd jbigkit
7074
cmake -Bbuild -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DBUILD_PROGRAMS=OFF -DBUILD_TOOLS=OFF -DCMAKE_WARN_DEPRECATED=OFF
71-
cmake --build build --config Release --target install
75+
cmake --build build --config RelWithDebInfo --target install
7276
cd ..
7377
7478
- name: Build and Install libtiff
7579
shell: cmd
7680
run: |
7781
git clone -c advice.detachedHead=false -b "v4.6.0" --depth 1 https://gitlab.com/libtiff/libtiff.git
7882
cd libtiff
79-
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF
80-
cmake --build build --config Release --target install
83+
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF
84+
cmake --build build --config RelWithDebInfo --target install
8185
cd ..
8286
8387
- name: Build and Install leptonica
@@ -86,8 +90,8 @@ jobs:
8690
echo "Building leptonica..."
8791
git clone --depth 1 https://github.com/DanBloomberg/leptonica.git
8892
cd leptonica
89-
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DSW_BUILD=OFF -DBUILD_PROG=OFF -DBUILD_SHARED_LIBS=ON
90-
cmake --build build --config Release --target install
93+
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DSW_BUILD=OFF -DBUILD_PROG=OFF -DBUILD_SHARED_LIBS=ON
94+
cmake --build build --config RelWithDebInfo --target install
9195
9296
- name: Remove not needed tools Before building tesseract
9397
shell: cmd
@@ -97,8 +101,8 @@ jobs:
97101
- name: Build and Install tesseract
98102
shell: cmd
99103
run: |
100-
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DSW_BUILD=OFF -DBUILD_SHARED_LIBS=ON -DENABLE_LTO=ON -DBUILD_TRAINING_TOOLS=OFF -DFAST_FLOAT=ON -DGRAPHICS_DISABLED=ON -DOPENMP_BUILD=OFF
101-
cmake --build build --config Release --target install
104+
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DSW_BUILD=OFF -DBUILD_SHARED_LIBS=ON -DENABLE_LTO=ON -DBUILD_TRAINING_TOOLS=OFF -DFAST_FLOAT=ON -DGRAPHICS_DISABLED=ON -DOPENMP_BUILD=OFF
105+
cmake --build build --config RelWithDebInfo --target install
102106
103107
- name: Upload Build Results
104108
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)