-
Notifications
You must be signed in to change notification settings - Fork 50
49 lines (39 loc) · 1.16 KB
/
workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on: [push, pull_request, workflow_dispatch]
env:
repo_name: ${{ github.repository }}
sha_git: ${{ github.sha }}
jobs:
Basic_Workflow:
strategy:
matrix:
version: [11, 14, 17, 20, 23]
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
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
shell: bash
run: ./build/bin/common-tests