Skip to content

Commit

Permalink
Merge pull request #101 from pmem/basic_workflow
Browse files Browse the repository at this point in the history
Basic workflow
  • Loading branch information
janekmi authored Jul 18, 2024
2 parents 5f9fac9 + 30b5ffc commit 0241cf8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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

0 comments on commit 0241cf8

Please sign in to comment.