mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Update cmake-win64.yml
This commit is contained in:
parent
e7307fd6b4
commit
8fffed42ad
21
.github/workflows/cmake-win64.yml
vendored
21
.github/workflows/cmake-win64.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: ilammy/setup-nasm@v1
|
||||
- uses: battila7/get-version-action@v2
|
||||
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@ -139,6 +140,13 @@ jobs:
|
||||
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=ON
|
||||
cmake --build build --config Release --target install
|
||||
|
||||
- name: Upload Build Results
|
||||
uses: actions/upload-artifact@v3.1.1
|
||||
with:
|
||||
name: tesseract-${{ steps.get_version.outputs.VERSION }}-VS2019_win64
|
||||
path: ${{env.ILOC}}
|
||||
retention-days: 5
|
||||
|
||||
- name: Display Tesseract Version and Test Command Line Usage
|
||||
shell: cmd
|
||||
run: |
|
||||
@ -152,15 +160,4 @@ jobs:
|
||||
tesseract -v
|
||||
tesseract --list-langs
|
||||
tesseract test/testing/phototest.tif -
|
||||
|
||||
- name: Sleep for 15 seconds
|
||||
run: |
|
||||
echo "Upload Build Results..."
|
||||
sleep 15s
|
||||
|
||||
- name: Upload Build Results
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: tesseract-${{ steps.get_version.outputs.VERSION }}-VS2019_win64
|
||||
path: ${{env.ILOC}}
|
||||
retention-days: 5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user