Skip to content

Commit

Permalink
(build) install dependencies needed for Mac and Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed Nov 29, 2024
1 parent d415e6a commit c75be97
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c75be97

Please sign in to comment.