Skip to content

Commit

Permalink
cmake: remove config option from build to avoid GA wrong build
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Jun 11, 2024
1 parent 694cd16 commit ec829cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cmake-win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
git clone --depth 1 https://github.com/zlib-ng/zlib-ng.git
cd zlib-ng
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
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
cd ..
- name: Build and Install libpng
Expand All @@ -57,7 +57,7 @@ jobs:
unzip.exe -qq lpng${{env.png_ver}}.zip
cd lpng${{env.png_ver}}
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DPNG_TESTS=OFF -DPNG_SHARED=OFF
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
cd ..
- name: Build and Install libjpeg
Expand All @@ -66,7 +66,7 @@ jobs:
git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo.git
cd libjpeg-turbo
cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DWITH_TURBOJPEG=OFF -DENABLE_SHARED=OFF
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
cd ..
- name: Build and Install jbigkit
Expand All @@ -75,7 +75,7 @@ jobs:
git clone --depth 1 https://github.com/zdenop/jbigkit.git
cd jbigkit
cmake -Bbuild -DCMAKE_PREFIX_PATH=${{env.ILOC}} -DCMAKE_INSTALL_PREFIX=${{env.ILOC}} -DBUILD_PROGRAMS=OFF -DBUILD_TOOLS=OFF -DCMAKE_WARN_DEPRECATED=OFF
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
cd ..
- name: Build and Install libtiff
Expand All @@ -84,7 +84,7 @@ jobs:
git clone -c advice.detachedHead=false -b "v4.6.0" --depth 1 https://gitlab.com/libtiff/libtiff.git
cd libtiff
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
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
cd ..
- name: Build and Install leptonica
Expand All @@ -94,7 +94,7 @@ jobs:
git clone --depth 1 https://github.com/DanBloomberg/leptonica.git
cd leptonica
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
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
- name: Remove not needed tools Before building tesseract
shell: cmd
Expand All @@ -105,7 +105,7 @@ jobs:
shell: cmd
run: |
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
cmake --build build --config RelWithDebInfo --target install
cmake --build build --target install
- name: Upload Build Results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit ec829cd

Please sign in to comment.