]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ci: add a macos workflow
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 12 Apr 2026 06:01:51 +0000 (08:01 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 14 May 2026 11:19:43 +0000 (13:19 +0200)
Some users want to build parts of util-linux on macOS.
Add a workflow to make sure this works.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
.github/workflows/cibuild.yml

index b25147513a5667dcc902a7e1f351237abc63497d..9c40d967ff9136e17de6d48ab54f91805d4202ec 100644 (file)
@@ -254,3 +254,31 @@ jobs:
           if [[ "$OPENWRT_TARGET" = "x86" ]]; then
               .github/workflows/cibuild.sh CHECK
           fi
+
+  build-macos:
+    name: build macos
+    runs-on: macos-latest
+    concurrency:
+      group: ${{ github.workflow }}-macos-${{ github.ref }}
+      cancel-in-progress: true
+    env:
+      COMPILER: none
+      HOMEBREWPATH: "/opt/homebrew/bin:/opt/homebrew/opt/bison/bin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin"
+    steps:
+      - name: Prepare
+        run: |
+          brew install meson coreutils bison findutils gnu-sed bash
+      - name: Repository checkout
+        uses: actions/checkout@v6
+      - name: Configure
+        run: |
+          PATH="$HOMEBREWPATH:$PATH"
+          .github/workflows/cibuild.sh MESONCONF
+      - name: Make
+        run: |
+          PATH="$HOMEBREWPATH:$PATH"
+          .github/workflows/cibuild.sh MESONBUILD
+      - name: Check
+        run: |
+          PATH="$HOMEBREWPATH:$PATH"
+          .github/workflows/cibuild.sh CHECK