Merging upstream version 1.6.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
adbb3a10cc
commit
6add9877e4
871 changed files with 8481 additions and 1502 deletions
53
.github/workflows/build.yml
vendored
53
.github/workflows/build.yml
vendored
|
@ -17,9 +17,9 @@ jobs:
|
|||
compiler: [gcc, clang]
|
||||
buildtype: [debug, release]
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian:0.30
|
||||
image: ghcr.io/igaw/linux-nvme/debian:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
@ -40,33 +40,22 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- arch: armhf
|
||||
port: armhf
|
||||
compiler: gcc-arm-linux-gnueabihf
|
||||
packages:
|
||||
- arch: s390x
|
||||
port: s390x
|
||||
compiler: gcc-s390x-linux-gnu
|
||||
packages: libgcc-s1:s390x
|
||||
- arch: ppc64le
|
||||
port: ppc64el
|
||||
compiler: gcc-powerpc64le-linux-gnu
|
||||
packges:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: set up arm architecture
|
||||
run: |
|
||||
export release=$(lsb_release -c -s)
|
||||
sudo dpkg --add-architecture ${{ matrix.port }}
|
||||
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
|
||||
sudo dd of=/etc/apt/sources.list.d/${{ matrix.arch }}.list <<EOF
|
||||
deb [arch=${{ matrix.port }}] http://ports.ubuntu.com/ $release main universe restricted"
|
||||
deb [arch=${{ matrix.port }}] http://ports.ubuntu.com/ $release-updates main universe restricted"
|
||||
EOF
|
||||
sudo apt update
|
||||
sudo apt install -y meson pkg-config qemu-user-static ${{ matrix.compiler}} libjson-c-dev:${{ matrix.port }} ${{ matrix.packages }}
|
||||
- name: build
|
||||
run: |
|
||||
scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
|
||||
- uses: actions/checkout@v4
|
||||
- name: enable foreign arch
|
||||
uses: dbhi/qus/action@main
|
||||
- name: compile and run unit tests
|
||||
uses: mosteo-actions/docker-run@v1
|
||||
with:
|
||||
image: ghcr.io/igaw/linux-nvme/ubuntu-cross-${{ matrix.arch }}:latest
|
||||
guest-dir: /build
|
||||
host-dir: ${{ github.workspace }}
|
||||
command: |
|
||||
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
|
||||
name: upload logs
|
||||
if: failure()
|
||||
|
@ -79,9 +68,9 @@ jobs:
|
|||
name: libdbus
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian:0.30
|
||||
image: ghcr.io/igaw/linux-nvme/debian:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
@ -100,10 +89,10 @@ jobs:
|
|||
name: fallback shared libraries
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian:0.30
|
||||
image: ghcr.io/igaw/linux-nvme/debian:latest
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
@ -121,9 +110,9 @@ jobs:
|
|||
name: muon minimal static
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian:0.30
|
||||
image: ghcr.io/igaw/linux-nvme/debian:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: build
|
||||
run: |
|
||||
scripts/build.sh -m muon
|
||||
|
|
29
.github/workflows/coverage.yml
vendored
29
.github/workflows/coverage.yml
vendored
|
@ -9,30 +9,13 @@ jobs:
|
|||
code-coverage:
|
||||
name: code coverage
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian.python:latest
|
||||
steps:
|
||||
- name: install libraries
|
||||
run: sudo apt-get install libjson-c-dev libdbus-1-dev lcov
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- uses: BSFishy/meson-build@v1.0.3
|
||||
with:
|
||||
# Can't use 'coverage' here, see
|
||||
# https://github.com/BSFishy/meson-build/issues/4
|
||||
action: test
|
||||
options: --verbose
|
||||
setup-options: >
|
||||
--werror
|
||||
--buildtype=release
|
||||
--wrap-mode=nofallback
|
||||
-Dlibdbus=enabled
|
||||
-Db_coverage=true
|
||||
meson-version: 0.61.2
|
||||
- name: Generate Coverage Report
|
||||
# Can't use meson here, see
|
||||
# https://github.com/mesonbuild/meson/issues/7895
|
||||
run: ninja -C build coverage --verbose
|
||||
- uses: actions/checkout@v4
|
||||
- name: build
|
||||
run: |
|
||||
scripts/build.sh coverage
|
||||
- uses: codecov/codecov-action@v3
|
||||
with:
|
||||
fail_ci_if_error: false
|
||||
|
|
8
.github/workflows/release-python.yml
vendored
8
.github/workflows/release-python.yml
vendored
|
@ -15,11 +15,13 @@ jobs:
|
|||
build_sdist:
|
||||
name: Build source distribution
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/igaw/linux-nvme/debian.python:latest
|
||||
steps:
|
||||
- name: install libraries
|
||||
run: sudo apt-get install gcc pkg-config libjson-c-dev libssl-dev python3-dev
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- name: Allow workspace
|
||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
- name: Build sdist
|
||||
run: pipx run build --sdist
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue