Skip to content

Commit d74e369

Browse files
committed
build: merge libnvme build into the nvme-cli build scripts
For now, the library should be buildable independent of the nvme-cli binary. Add a new target into the build script and update the workflow accordingly. This only updates the build part, there is more work to be done for the other workflows etc. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 555db07 commit d74e369

File tree

4 files changed

+34
-373
lines changed

4 files changed

+34
-373
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
default:
13+
nvme-cli:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
@@ -33,6 +33,29 @@ jobs:
3333
path: |
3434
.build-ci/meson-logs/*.txt
3535
36+
libnvme:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
compiler: [gcc, clang]
41+
buildtype: [debug, release]
42+
container:
43+
image: ghcr.io/linux-nvme/debian.python:latest
44+
steps:
45+
- uses: actions/checkout@v5
46+
- name: Mark repo as safe for git
47+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
48+
- name: build
49+
run: |
50+
scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }} -x libnvme
51+
- uses: actions/upload-artifact@v5
52+
name: upload logs
53+
if: failure()
54+
with:
55+
name: libnvme logs files
56+
path: |
57+
.build-ci/meson-logs/*.txt
58+
3659
cross:
3760
runs-on: ubuntu-latest
3861
strategy:

.github/workflows/libnvme-build.yml

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)