-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (36 loc) · 1.07 KB
/
ci.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
name: CI Build and Test
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake libtool make gcc g++ libopenmpi-dev libucx-dev libgtest-dev
- name: Run autoreconf
run: autoreconf -i
- name: Configure the project
run: ./configure
- name: Build the project
run: make
- name: Install the project
run: sudo make install
- name: Run finchfsd
run: |
mpirun --allow-run-as-root -x LD_LIBRARY_PATH=/usr/local/lib --np 1 finchfsd &
sleep 5
- name: Build finchfs_test
run: g++ tests/finchfs_test.cc `pkg-config --libs finchfs` -lgtest -o finchfs_test
- name: Enable unprivileged userfaultfd
run: sudo sh -c "echo 1 > /proc/sys/vm/unprivileged_userfaultfd"
- name: Run finchfs_test
run: LD_LIBRARY_PATH=/usr/local/lib ./finchfs_test