From a0e8d7353ff09ca8b1c19475218190e4331ac87a Mon Sep 17 00:00:00 2001 From: Joachim Ansorg Date: Mon, 17 Jun 2024 16:04:58 +0200 Subject: [PATCH] Run GitHub Actions workflow on Linux and macOS (#26) --- .github/workflows/CI.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c7b41ff..092187d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,22 +3,37 @@ on: push: jobs: - linux: - name: "Linux" - runs-on: ubuntu-latest + tests: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + + runs-on: ${{ matrix.os }} + name: "Run Tests on ${{ matrix.os }}" steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Packages + - name: Install dependencies for Linux + if: runner.os == 'Linux' shell: bash run: |+ sudo apt -y update sudo apt -y install autoconf automake texinfo + - name: Install dependencies for macOS + if: runner.os == 'macOS' + shell: bash + run: |+ + brew update + brew install bash + brew install autoconf automake texinfo + # Not installing pygments, because apparently 'osascript' executed during bashdb's init is blocking + # if there's not user logged in. + - name: Configure shell: bash - run: sh ./autogen.sh + run: bash ./autogen.sh - name: Test shell: bash