File tree Expand file tree Collapse file tree 7 files changed +60
-112
lines changed
Expand file tree Collapse file tree 7 files changed +60
-112
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : Ubuntu
2+ on :
3+ push :
4+ branches :
5+ - ' **'
6+ pull_request :
7+ branches :
8+ - ' **'
9+
10+ jobs :
11+ build-test :
12+ runs-on : ${{ matrix.os }}
13+ strategy :
14+ matrix :
15+ include :
16+ - os : ubuntu-22.04
17+ compiler : gcc
18+ c_compiler : gcc
19+ cxx_compiler : g++
20+ name : Ubuntu-22.04-GCC
21+ packages : gcc g++
22+ - os : ubuntu-22.04
23+ compiler : clang
24+ c_compiler : clang
25+ cxx_compiler : clang++
26+ name : Ubuntu-22.04-Clang
27+ packages : clang
28+ - os : ubuntu-24.04
29+ compiler : gcc
30+ c_compiler : gcc
31+ cxx_compiler : g++
32+ name : Ubuntu-24.04-GCC
33+ packages : gcc g++
34+ - os : ubuntu-24.04
35+ compiler : clang
36+ c_compiler : clang
37+ cxx_compiler : clang++
38+ name : Ubuntu-24.04-Clang
39+ packages : clang
40+
41+ name : ${{ matrix.name }}
42+ steps :
43+ - name : Checkout repository
44+ uses : actions/checkout@v4
45+
46+ - name : Install dependencies
47+ run : |
48+ sudo apt update
49+ sudo apt install -y ninja-build cmake ${{ matrix.packages }}
50+
51+ - name : Run CMake configuration and build
52+ run : |
53+ cmake examples -B build -G Ninja \
54+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
55+ -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
56+ -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
57+ cmake --build build --parallel
58+
59+ - name : Run Unit Tests
60+ run : ./build/tests
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments