From: Thomas Weißschuh Date: Sun, 12 Apr 2026 06:01:51 +0000 (+0200) Subject: ci: add a macos workflow X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcc45a50cbc59576a14a21e00731167e0d5dd41c;p=thirdparty%2Futil-linux.git ci: add a macos workflow 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 --- diff --git a/.github/workflows/cibuild.yml b/.github/workflows/cibuild.yml index b25147513..9c40d967f 100644 --- a/.github/workflows/cibuild.yml +++ b/.github/workflows/cibuild.yml @@ -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