Skip to content

Commit

Permalink
(github) try to fix issues in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed Nov 29, 2024
1 parent 39d66e1 commit 48f5304
Showing 1 changed file with 8 additions and 37 deletions.
45 changes: 8 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,46 +16,17 @@ 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
ls /usr/X11/include/cairo
- name: Check X11 paths (macOS)
# check out the repository
- uses: actions/checkout@v4

- name: compile giza (Mac OS)
if: runner.os == 'macOS'
run: |
ls -l /usr/X11/include/cairo
ls -l /usr/X11/lib
./configure --prefix=/opt/homebrew
make install
- name: update package list
- name: compile giza (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update

#- name: Install dependencies (Ubuntu)
#if: runner.os == 'Linux'
#run: |
# sudo apt-get install -y libcairo2-dev
# sudo apt-get install -y libx11-dev
# sudo apt-get install -y pkgconf
# sudo apt-get install -y libfreetype6-dev
# sudo apt-get install -y libfontconfig1-dev

- name: install gfortran compiler
uses: fortran-lang/setup-fortran@v1
env:
DEBIAN_FRONTEND: noninteractive
with:
compiler: gcc

# check out the repository
- uses: actions/checkout@v4

- name: compile giza
run: |
./configure
make
make install

0 comments on commit 48f5304

Please sign in to comment.