Merge pull request #3249 from Shreeshrii/ciupdate

Fix Action workflows
This commit is contained in:
Egor Pugin 2021-01-20 13:38:06 +03:00 committed by GitHub
commit c38536f32d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 16 deletions

View File

@ -1,9 +1,10 @@
name: dailycmake
on:
#push:
schedule:
# every day at 2:15 AM UTC
- cron: 15 2 * * *
# every day
- cron: 15 10 * * *
jobs:
build-gcc-linux:
@ -50,7 +51,7 @@ jobs:
clang_version: [ 11, 10, 9, 8, 7 ]
build_type: [ Release, Debug ]
exclude:
- { gcc_version: 11, os: ubuntu-18.04 }
- { clang_version: 11, os: ubuntu-18.04 }
steps:
- name: Install compiler
@ -65,6 +66,7 @@ jobs:
- name: Build and run
run: |
export CC=clang-${{ matrix.clang_version }}
export CXX=clang++-${{ matrix.clang_version }}
- name: Configure
run: |
@ -77,6 +79,7 @@ jobs:
build-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
build_type: [ Release, Debug ]
@ -93,3 +96,24 @@ jobs:
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}
build-macos:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
build_type: [ Release, Debug ]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: egorpugin/sw-action@master
- name: Configure
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}

View File

@ -3,7 +3,7 @@ name: dailyunittest
on:
schedule:
# every day
- cron: 0 0 * * *
- cron: 8 0 * * *
jobs:
test-linux:
@ -11,8 +11,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
compiler: [ g++, clang++ ]
os: [ ubuntu-18.04, ubuntu-20.04 ]
exclude:
- { compiler: clang++, os: ubuntu-18.04 } # LSTMTrainerTest.DeterminismTest
steps:
- uses: actions/checkout@v2
@ -64,7 +66,7 @@ jobs:
- name: Display Unit Tests Report
run: |
git log -1
ls /Users/runner/work/testactions/testactions/test/testdata/
${{ matrix.compiler }} --version
cat unittest/test-suite.log
if: always()
@ -73,8 +75,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-10.15, macos-11.0 ]
compiler: [ g++, clang++ ]
os: [ macos-10.15 ]
steps:
- uses: actions/checkout@v2
@ -133,8 +135,8 @@ jobs:
- name: Display Unit Tests Report
run: |
${{ matrix.compiler }} --version
git log -1
ls /Users/runner/work/testactions/testactions/test/testdata/
cat unittest/test-suite.log
if: always()
@ -143,8 +145,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-10.15 ]
compiler: [ g++, clang++ ]
os: [ macos-10.15 ]
steps:
- uses: actions/checkout@v2
@ -203,15 +205,18 @@ jobs:
tesseract test/testing/phototest.tif - --tessdata-dir ../tessdata
tesseract test/testing/devatest.png - -l hin+eng --tessdata-dir ../tessdata
- name: Make and run Unit Tests
run: |
make check
continue-on-error: true
# Unittests build on macports fails because of abseil LinkerInitialized related errors.
# - name: Make and run Unit Tests
# run: |
# make check
# continue-on-error: true
- name: Display Unit Tests Report
- name: Unit Tests Not Run
run: |
${{ matrix.compiler }} --version
git log -1
ls /Users/runner/work/testactions/testactions/test/testdata/
cat unittest/test-suite.log
# cat unittest/test-suite.log
if: always()