Skip to content

Commit 1980c6d

Browse files
authored
Merge branch 'master' into master
2 parents 1cf7b57 + e9b11a7 commit 1980c6d

193 files changed

Lines changed: 8326 additions & 7504 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.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 & 124 deletions
This file was deleted.

.github/workflows/libnvme-docs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ jobs:
2121
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2222
- name: build
2323
run: |
24-
libnvme/scripts/build.sh docs
24+
scripts/build.sh docs
25+
# libnvme/scripts/build.sh docs

.github/workflows/libnvme-release-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ jobs:
6767
echo "dev_version=$VERSION" >> $GITHUB_OUTPUT
6868
echo "Computed dev version: $VERSION"
6969
70-
- name: Patch version in meson.build
70+
- name: Patch project version in meson.build
7171
run: |
72-
sed -i -e "0,/[ \t]version: /s/\([ \t]version: \).*/\1\'${{ steps.version.outputs.dev_version }}\',/" meson.build
72+
sed -i -e "/^project(/,/)/ s/^\(\s*\)version:\s*.*/\1version: '${{ steps.version.outputs.dev_version }}',/" meson.build
7373
7474
- name: Build sdist
7575
run: |
@@ -93,7 +93,7 @@ jobs:
9393
environment: pypi
9494
permissions:
9595
id-token: write
96-
if: github.repository == 'linux-nvme/libnvme'
96+
if: github.repository == 'linux-nvme/nvme-cli'
9797
steps:
9898
- uses: actions/download-artifact@v6
9999
with:
@@ -113,7 +113,7 @@ jobs:
113113
environment: pypi
114114
permissions:
115115
id-token: write
116-
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme'
116+
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/nvme-cli'
117117
steps:
118118
- name: Check if it is a release tag
119119
id: check-tag

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ tests/nvmetests
1717
tests/*.pyc
1818

1919
.build
20+
.build-ci
2021
.cache
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ build:
1616
post_install:
1717
- pip3 install lxml
1818
pre_build:
19-
- meson setup .build -Ddocs=rst -Ddocs-build=true || cat .build/meson-logs/meson-log.txt
19+
- meson setup .build -Ddocs=rst -Ddocs-build=true -Dnvme=disabled -Dlibnvme=disabled -Dpython=disabled || cat .build/meson-logs/meson-log.txt
2020
- meson compile -C .build
2121

2222
sphinx:
23-
configuration: .build/doc/conf.py
23+
configuration: .build/libnvme/doc/conf.py

0 commit comments

Comments
 (0)