mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
GA cmake-win64: fix getting version info
This commit is contained in:
parent
af131241af
commit
ac8ff2eae9
9
.github/workflows/cmake-win64.yml
vendored
9
.github/workflows/cmake-win64.yml
vendored
@ -21,9 +21,12 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- run: git fetch --prune --unshallow --tags
|
||||||
- name: Get the version
|
- name: Get the version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
run: |
|
||||||
|
$git_info=$(git describe --tags HEAD)
|
||||||
|
echo "version=${git_info}" >> $env:GITHUB_OUTPUT
|
||||||
- name: Setup Instalation Location
|
- name: Setup Instalation Location
|
||||||
run: |
|
run: |
|
||||||
mkdir ${{env.ILOC}}
|
mkdir ${{env.ILOC}}
|
||||||
@ -143,10 +146,10 @@ jobs:
|
|||||||
- name: Upload Build Results
|
- name: Upload Build Results
|
||||||
uses: actions/upload-artifact@v3.1.1
|
uses: actions/upload-artifact@v3.1.1
|
||||||
with:
|
with:
|
||||||
name: tesseract-${{ steps.get_version.outputs.VERSION }}-VS2019_win64
|
name: tesseract-${{ steps.get_version.outputs.version }}-VS2019_win64
|
||||||
path: ${{env.ILOC}}
|
path: ${{env.ILOC}}
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
- name: Display Tesseract Version and Test Command Line Usage
|
- name: Display Tesseract Version and Test Command Line Usage
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user