diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9795b5c..b67d9f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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