Skip to content

Commit a8dd193

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 a8dd193

File tree

13 files changed

+47
-110
lines changed

13 files changed

+47
-110
lines changed

.github/workflows/build.yml

Lines changed: 12 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
@@ -41,6 +43,8 @@ jobs:
4143
- arch: ppc64le
4244
steps:
4345
- uses: actions/checkout@v5
46+
- name: Mark repo as safe for git
47+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
4448
- name: enable foreign arch
4549
uses: dbhi/qus/action@main
4650
- name: Login to GitHub Container Registry
@@ -75,6 +79,8 @@ jobs:
7579
if: github.ref == 'refs/heads/master'
7680
steps:
7781
- uses: actions/checkout@v5
82+
- name: Mark repo as safe for git
83+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
7884
- name: build
7985
run: |
8086
scripts/build.sh -b release -c gcc fallback
@@ -92,6 +98,8 @@ jobs:
9298
image: ghcr.io/linux-nvme/debian:latest
9399
steps:
94100
- uses: actions/checkout@v5
101+
- name: Mark repo as safe for git
102+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
95103
- name: build
96104
run: |
97105
scripts/build.sh -m muon
@@ -103,6 +111,8 @@ jobs:
103111
image: ghcr.io/linux-nvme/debian:latest
104112
steps:
105113
- uses: actions/checkout@v5
114+
- name: Mark repo as safe for git
115+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
106116
- name: build
107117
run: |
108118
make static
@@ -114,6 +124,8 @@ jobs:
114124
image: ghcr.io/linux-nvme/debian:latest
115125
steps:
116126
- uses: actions/checkout@v5
127+
- name: Mark repo as safe for git
128+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
117129
- name: build
118130
run: |
119131
scripts/build.sh distro

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

Lines changed: 20 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
@@ -41,6 +43,8 @@ jobs:
4143
- arch: ppc64le
4244
steps:
4345
- uses: actions/checkout@v5
46+
- name: Mark repo as safe for git
47+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
4448
- name: enable foreign arch
4549
uses: dbhi/qus/action@main
4650
- name: Login to GitHub Container Registry
@@ -56,14 +60,14 @@ jobs:
5660
guest-dir: /build
5761
host-dir: ${{ github.workspace }}
5862
command: |
59-
scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
63+
libnvme/scripts/build.sh -b release -c gcc -t ${{ matrix.arch }} cross
6064
params: "--platform linux/amd64"
6165
pull-params: "--platform linux/amd64"
6266
- uses: actions/upload-artifact@v5
6367
name: upload logs
6468
if: failure()
6569
with:
66-
name: log files
70+
name: libnvme log files
6771
path: |
6872
.build-ci/meson-logs/*.txt
6973
@@ -74,14 +78,16 @@ jobs:
7478
image: ghcr.io/linux-nvme/debian:latest
7579
steps:
7680
- uses: actions/checkout@v5
81+
- name: Mark repo as safe for git
82+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
7783
- name: build
7884
run: |
79-
scripts/build.sh -b release -c gcc libdbus
85+
libnvme/scripts/build.sh -b release -c gcc libdbus
8086
- uses: actions/upload-artifact@v5
8187
name: upload logs
8288
if: failure()
8389
with:
84-
name: log files
90+
name: libnvme log files
8591
path: |
8692
.build-ci/meson-logs/*.txt
8793
@@ -93,13 +99,15 @@ jobs:
9399
if: github.ref == 'refs/heads/master'
94100
steps:
95101
- uses: actions/checkout@v5
102+
- name: Mark repo as safe for git
103+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
96104
- name: build
97105
run: |
98-
scripts/build.sh -b release -c gcc fallback
106+
libnvme/scripts/build.sh -b release -c gcc fallback
99107
- uses: actions/upload-artifact@v5
100108
if: failure()
101109
with:
102-
name: log files
110+
name: libnvme log files
103111
path: |
104112
.build-ci/meson-logs/*.txt
105113
@@ -110,6 +118,8 @@ jobs:
110118
image: ghcr.io/linux-nvme/debian:latest
111119
steps:
112120
- uses: actions/checkout@v5
121+
- name: Mark repo as safe for git
122+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
113123
- name: build
114124
run: |
115-
scripts/build.sh -m muon
125+
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)