Skip to content

Commit fbbb8b4

Browse files
authored
Merge pull request #17 from perke0/dev
actions
2 parents bbdbae4 + fbb0385 commit fbbb8b4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 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-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install deps
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y cmake ninja-build gcc clang
21+
22+
- name: Configure
23+
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
24+
25+
- name: Build
26+
run: cmake --build build
27+
28+
- name: Run correctness (test_all)
29+
run: |
30+
./build/test_all 200000 123 | tee out.txt
31+
# Fail if any sorter reports "sorted: NO"
32+
! grep -q "sorted: NO" out.txt
33+

0 commit comments

Comments
 (0)