-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.04 KB
/
ci.yml
File metadata and controls
46 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
permissions:
contents: read
jobs:
build-and-test:
name: build-and-test
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --security-opt seccomp=unconfined --ulimit memlock=-1:-1
steps:
- name: Install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm base-devel cmake gcc liburing pkgconf git nodejs
- name: Check out repository
uses: actions/checkout@v4
- name: Configure server tests
run: cmake -S server -B build/server -DCMAKE_BUILD_TYPE=Release
- name: Build server tests
run: cmake --build build/server -j
- name: Run tests
run: ctest --test-dir build/server --output-on-failure
- name: Configure example
run: cmake -S example -B build/example -DCMAKE_BUILD_TYPE=Release -DENABLE_ASAN=OFF
- name: Build example
run: cmake --build build/example -j