From 598325a615b4570280d6a535d1b4f72417cf299d Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Sun, 28 Jan 2024 18:07:21 +0900 Subject: [PATCH] Create macOS job --- .github/workflows/ci.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 844e13b..7bc2b99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,8 @@ env: libncurses-dev jobs: - build: - + build-ubuntu: + name: Ubuntu runs-on: ubuntu-latest steps: @@ -33,6 +33,25 @@ jobs: - name: Configure run: ./configure - name: Compile - run: make + run: make -j $(nproc) - name: Distribution check run: make distcheck + + build-macos: + name: macOS + runs-on: macos-13 + env: + HOMEBREW_NO_INSTALL_CLEANUP: 1 + HOMEBREW_NO_AUTO_UPDATE: 1 + HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: brew install automake libgcrypt + - name: Bootstrap + run: ./bootstrap + - name: Configure + run: ./configure + - name: Compile + run: make -j $(nproc)