Skip to content

Commit

Permalink
Update c-cpp.yml with tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Golikov <kirill.golikov@abbyy.com>
  • Loading branch information
favorart committed May 13, 2024
1 parent 10f6535 commit 28205fe
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,34 @@ env:
CXX: g++-10

jobs:
build:
build-and-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: seanmiddleditch/gha-setup-ninja@master
- name: configure
run: cmake -G Ninja /home/runner/work/neoml/neoml/NeoML -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/runner/work/neoml/build
- name: make
- uses: seanmiddleditch/gha-setup-ninja@master # gtests

- name: install intel-mkl
#timeout-minutes: 5
run: sudo apt install intel-mkl

- name: configure debug
run: cmake -G Ninja /home/runner/work/neoml/neoml/NeoML -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/runner/work/neoml/build.debug
- name: make debug
run: cmake --build . --target install

- name: configure release
run: cmake -G Ninja /home/runner/work/neoml/neoml/NeoML -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/runner/work/neoml/build.release
- name: make release
run: cmake --build . --target install

- name: test NeoMathEngine release
run: |
cd /home/runner/work/neoml/build.release/bin
./NeoMathEngineFullTestDesktop
- name: test NeoML release
run: |
cd /home/runner/work/neoml/build.release/bin
./NeoMLTest

0 comments on commit 28205fe

Please sign in to comment.