Skip to content

Commit bce3ffa

Browse files
committed
build: move libnvme github workflows to top dir
Move the existing libnvme github workflows to the top dir and update them accordingly. It is not clear how the release is suppose to work but let's leave this for later. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 8c099b7 commit bce3ffa

File tree

13 files changed

+45
-110
lines changed

13 files changed

+45
-110
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
image: ghcr.io/linux-nvme/debian.python:latest
2121
steps:
2222
- uses: actions/checkout@v5
23+
- name: Mark repo as safe for git
24+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2325
- name: build
2426
run: |
2527
scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }} -x
@@ -56,6 +58,7 @@ jobs:
5658
guest-dir: /build
5759
host-dir: ${{ github.workspace }}
5860
command: |
61+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
5962
scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
6063
params: "--platform linux/amd64"
6164
pull-params: "--platform linux/amd64"
@@ -75,6 +78,8 @@ jobs:
7578
if: github.ref == 'refs/heads/master'
7679
steps:
7780
- uses: actions/checkout@v5
81+
- name: Mark repo as safe for git
82+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
7883
- name: build
7984
run: |
8085
scripts/build.sh -b release -c gcc fallback
@@ -92,6 +97,8 @@ jobs:
9297
image: ghcr.io/linux-nvme/debian:latest
9398
steps:
9499
- uses: actions/checkout@v5
100+
- name: Mark repo as safe for git
101+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
95102
- name: build
96103
run: |
97104
scripts/build.sh -m muon
@@ -103,6 +110,8 @@ jobs:
103110
image: ghcr.io/linux-nvme/debian:latest
104111
steps:
105112
- uses: actions/checkout@v5
113+
- name: Mark repo as safe for git
114+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
106115
- name: build
107116
run: |
108117
make static
@@ -114,6 +123,8 @@ jobs:
114123
image: ghcr.io/linux-nvme/debian:latest
115124
steps:
116125
- uses: actions/checkout@v5
126+
- name: Mark repo as safe for git
127+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
117128
- name: build
118129
run: |
119130
scripts/build.sh distro

libnvme/.github/workflows/build.yml renamed to .github/workflows/libnvme-build.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: build
2+
name: libnvme build
33

44
on:
55
push:
@@ -20,14 +20,16 @@ jobs:
2020
image: ghcr.io/linux-nvme/debian.python:latest
2121
steps:
2222
- uses: actions/checkout@v5
23+
- name: Mark repo as safe for git
24+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2325
- name: build
2426
run: |
25-
scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }} -x
27+
libnvme/scripts/build.sh -b ${{ matrix.buildtype }} -c ${{ matrix.compiler }} -x
2628
- uses: actions/upload-artifact@v5
2729
name: upload logs
2830
if: failure()
2931
with:
30-
name: logs files
32+
name: libnvme logs files
3133
path: |
3234
.build-ci/meson-logs/*.txt
3335
@@ -56,14 +58,15 @@ jobs:
5658
guest-dir: /build
5759
host-dir: ${{ github.workspace }}
5860
command: |
59-
scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
61+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
62+
libnvme/scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
6063
params: "--platform linux/amd64"
6164
pull-params: "--platform linux/amd64"
6265
- uses: actions/upload-artifact@v5
6366
name: upload logs
6467
if: failure()
6568
with:
66-
name: log files
69+
name: libnvme log files
6770
path: |
6871
.build-ci/meson-logs/*.txt
6972
@@ -74,14 +77,16 @@ jobs:
7477
image: ghcr.io/linux-nvme/debian:latest
7578
steps:
7679
- uses: actions/checkout@v5
80+
- name: Mark repo as safe for git
81+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
7782
- name: build
7883
run: |
79-
scripts/build.sh -b release -c gcc libdbus
84+
libnvme/scripts/build.sh -b release -c gcc libdbus
8085
- uses: actions/upload-artifact@v5
8186
name: upload logs
8287
if: failure()
8388
with:
84-
name: log files
89+
name: libnvme log files
8590
path: |
8691
.build-ci/meson-logs/*.txt
8792
@@ -93,13 +98,15 @@ jobs:
9398
if: github.ref == 'refs/heads/master'
9499
steps:
95100
- uses: actions/checkout@v5
101+
- name: Mark repo as safe for git
102+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
96103
- name: build
97104
run: |
98-
scripts/build.sh -b release -c gcc fallback
105+
libnvme/scripts/build.sh -b release -c gcc fallback
99106
- uses: actions/upload-artifact@v5
100107
if: failure()
101108
with:
102-
name: log files
109+
name: libnvme log files
103110
path: |
104111
.build-ci/meson-logs/*.txt
105112
@@ -110,6 +117,8 @@ jobs:
110117
image: ghcr.io/linux-nvme/debian:latest
111118
steps:
112119
- uses: actions/checkout@v5
120+
- name: Mark repo as safe for git
121+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
113122
- name: build
114123
run: |
115-
scripts/build.sh -m muon
124+
libnvme/scripts/build.sh -m muon

libnvme/.github/workflows/cleanup-python.yml renamed to .github/workflows/libnvme-cleanup-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
PYPI_USERNAME: __token__
2626
PYPI_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
2727
run: |
28+
cd libnvme
2829
pypi-cleanup \
2930
--username "$PYPI_USERNAME" \
3031
--password "$PYPI_PASSWORD" \

libnvme/.github/workflows/coverage.yml renamed to .github/workflows/libnvme-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: coverage
2+
name: libnvme coverage
33

44
on:
55
push:
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v5
1818
- name: build
1919
run: |
20-
scripts/build.sh coverage
20+
libnvme/scripts/build.sh coverage
2121
- uses: codecov/codecov-action@v5
2222
with:
2323
token: ${{ secrets.CODECOV_TOKEN }}

libnvme/.github/workflows/docs.yaml renamed to .github/workflows/libnvme-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: docs
2+
name: libnvme docs
33

44
on:
55
push:
@@ -19,4 +19,4 @@ jobs:
1919
- uses: actions/checkout@v5
2020
- name: build
2121
run: |
22-
scripts/build.sh docs
22+
libnvme/scripts/build.sh docs

libnvme/.github/workflows/release.yml renamed to .github/workflows/libnvme-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: release
2+
name: libnvme release
33

44
on:
55
push:

libnvme/.github/cross/ubuntu-cross-armhf.txt

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

libnvme/.github/cross/ubuntu-cross-ppc64le.txt

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

libnvme/.github/cross/ubuntu-cross-s390x.txt

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

0 commit comments

Comments
 (0)