-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (40 loc) · 1012 Bytes
/
test.yaml
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
47
48
49
50
name: test-build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Clang 18
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- name: Install dependencies
run: |
sudo apt update
make install-deps
sudo pip3 install --upgrade meson
- name: Build
run: |
make debug
- name: Install Ceph
run: |
sudo ./ci/setup_ceph.sh
sudo ceph osd pool create pone
- name: Run tests
run: |
mkdir -p /tmp/lsvd-read
mkdir -p /tmp/lsvd-write
mkdir -p /tmp/lsvd
cd build-dbg
sudo meson test
sudo ./imgtool create --size 1g --pool pone --img test-img
- name: Logs
if: always()
run: |
cat build-dbg/meson-logs/*.txt