Skip to content

Commit ce36d4f

Browse files
committed
Add workflow for gitea
1 parent 06cad44 commit ce36d4f

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.gitea/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)