Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic workflow #101

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.*
!.github
!.gitignore
!.gitattributes
!.clang-format
Expand Down