]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Add muon build target
authorDaniel Wagner <dwagner@suse.de>
Fri, 10 Feb 2023 15:09:54 +0000 (16:09 +0100)
committerDaniel Wagner <wagi@monom.org>
Fri, 17 Feb 2023 07:53:26 +0000 (08:53 +0100)
Build nvme-cli using muon.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
.github/workflows/build.yml

index 3f0b2031841fdadf146b749a85196c2b8182e758..a0c5f04dbf49aa3ba9215152d36d03c9d2c3bcf2 100644 (file)
@@ -244,3 +244,47 @@ jobs:
         with:
           name: cross s390x build log
           path: build/meson-logs/meson-log.txt
+
+  build-minimal:
+    name: muon minimal
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: build muon and samurai build-tool
+        run: |
+          mkdir build-tools
+          cd build-tools
+          git clone --depth 1 https://git.sr.ht/~lattis/muon
+          cd muon
+
+          export CC=gcc
+          export ninja=build/samu
+
+          ./tools/bootstrap_ninja.sh build
+          ./bootstrap.sh build
+
+          build/muon setup               \
+              -Dlibcurl=disabled         \
+              -Dlibarchive=disabled      \
+              -Ddocs=disabled            \
+              -Dsamurai=disabled         \
+              build
+          build/samu -C build
+          build/muon -C build test
+      - name: fetch libnvme
+        run: |
+          cd subprojects
+          git clone https://github.com/linux-nvme/libnvme.git
+          libnvme_ref=$(sed -n "s/revision = \([0-9a-z]\+\)/\1/p" libnvme.wrap)
+          git -C libnvme checkout $libnvme_ref
+      - name: build
+        run: |
+          export PATH=$(pwd)/build-tools/muon/build:$PATH
+
+          muon setup                     \
+              -Dlibnvme:python=false     \
+              -Dlibnvme:json-c=disabled  \
+              -Djson-c=disabled          \
+              build
+          samu -C build
+          muon -C build test