Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Action workflows #3249

Merged
merged 1 commit into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/dailycmake.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -77,6 +79,7 @@ jobs:
build-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
build_type: [ Release, Debug ]
Expand All @@ -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 }}
31 changes: 18 additions & 13 deletions .github/workflows/dailyunittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ name: dailyunittest
on:
schedule:
# every day
- cron: 0 0 * * *
- cron: 8 0 * * *

jobs:
test-linux:
runs-on: ${{ matrix.os }}
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
Expand Down Expand Up @@ -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()

Expand All @@ -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
Expand Down Expand Up @@ -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()

Expand All @@ -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
Expand Down Expand Up @@ -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()