-
Notifications
You must be signed in to change notification settings - Fork 29
32 lines (27 loc) · 952 Bytes
/
build.yml
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
name: Build
on:
pull_request:
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
container:
# The pmdk-tests repository struggles to build on any modern distro.
# Rocky 8 was hand-picked to meet the repository requirements.
# On Rocky 9 the libdaxctl.h header is placed in daxctl/ instead of ndctl/.
image: ghcr.io/pmem/pmdk:2.1-rockylinux-8-x86_64
options: --user root # WA the messed-up access rights inside the container
steps:
- name: Clone the pmdk-test repo
uses: actions/checkout@v4
with:
fetch-depth: 1 # WA actions/checkout#664
- name: Install dependencies
run: >
sudo dnf install --assumeyes
cmake libpmem-devel libpmemobj-devel libpmempool-devel ndctl-devel
- name: Create the build directory
run: mkdir build
- name: Build sources
working-directory: build
run: cmake .. && make -j