From c75be9785efe356b62be1f8a2eec827bb48c65d0 Mon Sep 17 00:00:00 2001 From: Daniel Price Date: Fri, 29 Nov 2024 12:21:26 +1100 Subject: [PATCH] (build) install dependencies needed for Mac and Linux builds --- .github/workflows/build.yml | 38 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea849f3..2569548 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,29 +16,25 @@ jobs: os: [ubuntu-latest, macos-latest] steps: - #- 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 (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 + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y gfortran + 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: Check gfortran version run: gfortran --version