mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Update sw.yml
This commit is contained in:
parent
b3011ef72c
commit
cfccc599f3
18
.github/workflows/sw.yml
vendored
18
.github/workflows/sw.yml
vendored
@ -22,50 +22,50 @@ jobs:
|
||||
- uses: egorpugin/sw-action@master
|
||||
|
||||
- name: build
|
||||
if: matrix.os == 'windows-latest' || matrix.os == 'windows-2022'
|
||||
if: matrix.os == 'windows-2022' || matrix.os == 'windows-2019'
|
||||
run: ./sw -static -shared -platform x86,x64 -config d,r build
|
||||
|
||||
- name: build
|
||||
if: matrix.os != 'windows-latest' && matrix.os != 'windows-2022'
|
||||
if: matrix.os != 'windows-2022' && matrix.os != 'windows-2019'
|
||||
run: ./sw -static -shared -config d,r build -Dwith-tests=1
|
||||
|
||||
- name: download test data
|
||||
run: git clone https://github.com/egorpugin/tessdata tessdata_unittest
|
||||
|
||||
- name: copy fonts
|
||||
if: matrix.os != 'windows-latest' && matrix.os != 'windows-2022'
|
||||
if: matrix.os != 'windows-2022' && matrix.os != 'windows-2019'
|
||||
run: cp tessdata_unittest/fonts/* test/testing/
|
||||
|
||||
- name: copy fonts
|
||||
if: matrix.os == 'windows-latest' || matrix.os == 'windows-2022'
|
||||
if: matrix.os == 'windows-2022' || matrix.os == 'windows-2019'
|
||||
run: Copy-Item -Path "tessdata_unittest\fonts\*" -Destination "test\testing" -Recurse
|
||||
shell: pwsh
|
||||
|
||||
- name: test
|
||||
if: matrix.os != 'windows-latest' && matrix.os != 'windows-2022'
|
||||
if: matrix.os != 'windows-2022' && matrix.os != 'windows-2019'
|
||||
run: ./sw -static -shared -config "d,r" test -Dwith-tests=1 "-Dskip-tests=lstm,lstm_recode"
|
||||
continue-on-error: true
|
||||
|
||||
- name: test-nightly
|
||||
if: matrix.os != 'windows-latest' && matrix.os != 'windows-2022' && github.event.schedule=='0 0 * * *'
|
||||
if: matrix.os != 'windows-2022' && matrix.os != 'windows-2019' && github.event.schedule=='0 0 * * *'
|
||||
run: ./sw -static -shared -config "d,r" test -Dwith-tests=1
|
||||
continue-on-error: true
|
||||
|
||||
# windows tests hang here for some reason, investigate
|
||||
#- name: test
|
||||
#if: matrix.os == 'windows-latest' || matrix.os == 'windows-2022'
|
||||
#if: matrix.os == 'windows-2022' || matrix.os == 'windows-2019'
|
||||
#run: ./sw test -Dwith-tests=1 "-Dskip-tests=lstm,lstm_recode"
|
||||
#continue-on-error: true
|
||||
|
||||
- name: Upload Unit Test Results
|
||||
if: always() && matrix.os != 'windows-latest' && matrix.os != 'windows-2022'
|
||||
if: always() && matrix.os != 'windows-2022' && matrix.os != 'windows-2019'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Test Results (${{ matrix.os }})
|
||||
path: .sw/test/results.xml
|
||||
|
||||
- name: Publish Test Report
|
||||
if: always() && matrix.os != 'windows-latest' && matrix.os != 'windows-2022'
|
||||
if: always() && matrix.os != 'windows-2022' && matrix.os != 'windows-2019'
|
||||
uses: mikepenz/action-junit-report@v1
|
||||
with:
|
||||
check_name: test (${{ matrix.os }})
|
||||
|
Loading…
Reference in New Issue
Block a user