From d415e6a79bd75215d69c633c1ed219a1f135b17f Mon Sep 17 00:00:00 2001 From: Daniel Price Date: Fri, 29 Nov 2024 12:14:04 +1100 Subject: [PATCH] (github) added build check for Mac OS --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e095f8..ea849f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,22 +8,42 @@ on: pull_request: branches: [ master ] -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] - # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Install gfortran for Linux - run: sudo apt-get install gfortran + #- name: Install dependencies (macOS) + # if: runner.os == 'macOS' + # run: | + # brew install cairo + # brew install pkg-config + # brew install libx11 + # brew install freetype + # brew install fontconfig + + #- name: Install dependencies (Ubuntu) + # if: runner.os == 'Linux' + #run: | + # sudo apt-get update + # sudo apt-get install -y libcairo2-dev + # sudo apt-get install -y libx11-dev + # sudo apt-get install -y pkg-config + # sudo apt-get install -y libfreetype6-dev + # sudo apt-get install -y libfontconfig1-dev + + - name: Install gfortran compiler + uses: fortran-lang/setup-fortran@v1 + with: + compiler: gcc - name: Check gfortran version run: gfortran --version - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + # check out the repository - uses: actions/checkout@v3 - name: compile giza