Skip to content

Commit 574e9e1

Browse files
committed
ci: add GitHub Actions CI — build with CMake/Ninja and run CTest
1 parent a29555d commit 574e9e1

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Aria Make CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-24.04
12+
timeout-minutes: 15
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y cmake g++ ninja-build
22+
23+
- name: Configure
24+
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
25+
26+
- name: Build
27+
run: cmake --build build -j$(nproc)
28+
29+
- name: Verify binary
30+
run: |
31+
test -f build/aria_make && echo "aria_make binary built" || exit 1
32+
33+
- name: Run tests
34+
run: |
35+
cd build
36+
ctest --output-on-failure

0 commit comments

Comments
 (0)