Skip to content

Commit

Permalink
Merge pull request opencv#39 from alexgiving/atrutnev/ade_windows_ci
Browse files Browse the repository at this point in the history
Added Windows configuration to CI
  • Loading branch information
dmatveev committed Sep 15, 2023
2 parents 50ff242 + 8b2e594 commit 639d3cd
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/workflow.yaml
Expand Up @@ -14,20 +14,36 @@ jobs:
os: [
ubuntu-20.04,
ubuntu-22.04,
windows-2022,
]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Build Stage
shell: bash
run: |
mkdir build && cd build
cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} ..
make -j
if [ "$RUNNER_OS" == "Windows" ]; then
cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} -G Ninja ..
cmake --build . --target GTest
cmake --build .
elif [ "$RUNNER_OS" == "Linux" ]; then
cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} ..
make -j
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: ADE-Test Stage
shell: bash
run: ./build/bin/ade-tests

- name: CMN-Test Stage
run: ./build/bin/common-tests
shell: bash
run: ./build/bin/common-tests

0 comments on commit 639d3cd

Please sign in to comment.