File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Gitea Actions CI
2+
3+ on :
4+ push :
5+ branches : [ "master", "main" ]
6+ paths :
7+ - ' **/*.cpp'
8+ - ' **/*.c'
9+ - ' **/*.h'
10+ - ' **/*.hpp'
11+ - ' **/CMakeLists.txt'
12+ - ' **/*.cmake'
13+ pull_request :
14+ branches : [ "master", "main" ]
15+ paths :
16+ - ' **/*.cpp'
17+ - ' **/*.c'
18+ - ' **/*.h'
19+ - ' **/*.hpp'
20+ - ' **/CMakeLists.txt'
21+ - ' **/*.cmake'
22+
23+ jobs :
24+ build :
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ - uses : actions/checkout@v4
29+
30+ - name : Install dependencies
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y cmake build-essential libgtest-dev
34+
35+ - name : Configure CMake
36+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DLIBEXCESSIVE_BUILD_TESTS=ON
37+
38+ - name : Build
39+ run : cmake --build ${{github.workspace}}/build --config Release --target libexcessive_tests
40+
41+ - name : Test
42+ working-directory : ${{github.workspace}}/build
43+ run : |
44+ # Ensure tests can find any required resources or handle directory changes if needed.
45+ ./libexcessive_tests
You can’t perform that action at this time.
0 commit comments