Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 1dac9a3

Browse files
committed
Add github ci
1 parent 9700c49 commit 1dac9a3

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"

.github/workflows/test-build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up C++ environment
20+
uses: actions/setup-cpp@v2
21+
with:
22+
compiler: gcc
23+
24+
- name: Install dependencies
25+
run: sudo apt-get install -y cmake nlohmann-json-dev libcurl4-openssl-dev
26+
27+
- name: Create build directory
28+
run: mkdir build
29+
30+
- name: Configure CMake
31+
run: cmake -S . -B build
32+
33+
- name: Build project
34+
run: cmake --build build
35+
36+
- name: Run tests
37+
run: ctest --test-dir build

0 commit comments

Comments
 (0)