Merging upstream version 1.7.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
41144a7301
commit
476f38f2bb
878 changed files with 2965 additions and 1746 deletions
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
@ -17,16 +17,13 @@ jobs:
|
|||
compiler: [gcc, clang]
|
||||
buildtype: [debug, release]
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian:latest
|
||||
image: ghcr.io/igaw/linux-nvme/debian.python:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: build
|
||||
run: |
|
||||
scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }}
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
name: upload logs
|
||||
if: failure()
|
||||
with:
|
||||
|
@ -56,7 +53,7 @@ jobs:
|
|||
scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
|
||||
params: "--platform linux/amd64"
|
||||
pull-params: "--platform linux/amd64"
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
name: upload logs
|
||||
if: failure()
|
||||
with:
|
||||
|
@ -71,13 +68,10 @@ jobs:
|
|||
image: ghcr.io/igaw/linux-nvme/debian:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: build
|
||||
run: |
|
||||
scripts/build.sh -b release -c gcc libdbus
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
name: upload logs
|
||||
if: failure()
|
||||
with:
|
||||
|
@ -93,13 +87,10 @@ jobs:
|
|||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: build
|
||||
run: |
|
||||
scripts/build.sh -b release -c gcc fallback
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: log files
|
||||
|
|
15
.github/workflows/checkpatch.yml
vendored
Normal file
15
.github/workflows/checkpatch.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
name: checkpatch review
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
checkpatch:
|
||||
name: checkpatch review
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Calculate PR commits + 1'
|
||||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
|
||||
- name: Run checkpatch review
|
||||
uses: webispy/checkpatch-action@v9
|
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
code-coverage:
|
||||
if: github.repository == 'linux-nvme/libnvme'
|
||||
name: code coverage
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
|
|
8
.github/workflows/release-python.yml
vendored
8
.github/workflows/release-python.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Build sdist
|
||||
run: pipx run build --sdist
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: dist/*.tar.gz
|
||||
retention-days: 5
|
||||
|
@ -36,7 +36,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: artifact
|
||||
path: dist
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
|||
upload_pypi:
|
||||
needs: [build_sdist]
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme'
|
||||
steps:
|
||||
- name: Check if it is a release tag
|
||||
id: check-tag
|
||||
|
@ -60,7 +60,7 @@ jobs:
|
|||
echo ::set-output name=match::true
|
||||
fi
|
||||
- name: Download artifiact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
if: steps.check-tag.outputs.match == 'true'
|
||||
with:
|
||||
name: artifact
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme'
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue