Skip to content

Commit 13cee90

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 2598ec2 commit 13cee90

17 files changed

+61
-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 /build
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

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
- name: Checkout repository
4242
uses: actions/checkout@v5
4343

44+
- name: Mark repo as safe for git
45+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
46+
4447
- name: Install build tools
4548
run: |
4649
sudo apt-get update

.github/workflows/docs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
image: ghcr.io/linux-nvme/debian:latest
2222
steps:
2323
- uses: actions/checkout@v5
24+
- name: Mark repo as safe for git
25+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2426
- name: build
2527
run: |
2628
scripts/build.sh docs

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 /build
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: 4 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:
@@ -15,9 +15,11 @@ jobs:
1515
image: ghcr.io/linux-nvme/debian.python:latest
1616
steps:
1717
- uses: actions/checkout@v5
18+
- name: Mark repo as safe for git
19+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
1820
- name: build
1921
run: |
20-
scripts/build.sh coverage
22+
libnvme/scripts/build.sh coverage
2123
- uses: codecov/codecov-action@v5
2224
with:
2325
token: ${{ secrets.CODECOV_TOKEN }}

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

Lines changed: 4 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:
@@ -17,6 +17,8 @@ jobs:
1717
image: ghcr.io/linux-nvme/debian:latest
1818
steps:
1919
- uses: actions/checkout@v5
20+
- name: Mark repo as safe for git
21+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2022
- name: build
2123
run: |
22-
scripts/build.sh docs
24+
libnvme/scripts/build.sh docs

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

Lines changed: 3 additions & 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:
@@ -15,6 +15,8 @@ jobs:
1515
contents: write
1616
steps:
1717
- uses: actions/checkout@v5
18+
- name: Mark repo as safe for git
19+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
1820
- uses: ncipollo/release-action@v1
1921
with:
2022
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
contents: write
1616
steps:
1717
- uses: actions/checkout@v5
18+
- name: Mark repo as safe for git
19+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
1820
- uses: ncipollo/release-action@v1
1921
with:
2022
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)